GNOME Bugzilla – Bug 548287
Use GResolver (or import it into libsoup)
Last modified: 2009-08-10 20:33:01 UTC
From bug 432778 $ gvfs-info http://www.kåremåla.se/graff-demo-2.avi Error getting info: HTTP Error: Cannot resolve hostname $ gvfs-info http://www.xn--kremla-iuad.se/testcase.html display name: testcase.html edit name: testcase.html type: unknown size: 394 attributes: standard::display-name: testcase.html standard::edit-name: testcase.html standard::size: 394 standard::content-type: text/html id::filesystem: type='http',uri='http://www.xn--kremla-iuad.se/testcase.html',mount_prefix='/testcase.html' etag::value: "15366-18a-450a9adb72a40" GStreamer's libsoup element has the same problem. From the browser plugin: <snip> ** Message: NewStream mimetype 'video/x-msvideo' URL 'http://www.kåremåla.se/graff-demo-2.avi' ** Message: Not expecting a new stream; aborting stream ** Message: Error: Cannot resolve hostname gstsouphttpsrc.c(683): gst_soup_http_src_finished_cb (): /play/source: libsoup status code 2
might make sense to combine this with bug 532778 (GThread-less async DNS) and push the result into gio
(In reply to comment #1) > might make sense to combine this with bug 532778 (GThread-less async DNS) and > push the result into gio filed as bug 548466. keeping this one open for now until it's clearer exactly how things are going to go
OK, the plan is now definitely to use the GResolver code from bug 548466. If that can't make it into glib for 2.20, or if glib 2.20 isn't going to be out before GNOME 2.26, then I'll just copy it into libsoup for 2.26.
fixed in master danw@desktop:tests (master)> ./get -h 'http://www.kåremåla.se/graff-demo-2.avi' HEAD /graff-demo-2.avi HTTP/1.1 HTTP/1.1 200 OK Date: Mon, 10 Aug 2009 20:30:53 GMT Server: Apache/2.2.11 (Fedora) Last-Modified: Fri, 27 Jun 2008 18:00:01 GMT ETag: "15346-3dcf40-450a9adbfa21c" Accept-Ranges: bytes Content-Length: 4050752 Connection: close Content-Type: video/x-msvideo