Can't resolve localhost when offline.
@manuq
Submitted by Manuel Quiñones Assigned to libsoup-maint@gnome.bugs
Link to original bug (#692291)
Description
Created attachment 234105 Soup testcase
I attach a testcase using libsoup with python through introspection.
TestCase:
- have a HTTP server serving in http://localhot:8000, for example doing 'python -m SimpleHTTPServer'
- run the testsoup.py testcase while online
- run the testsoup.py testcase while offline
Expected: both tests should give 'OK'.
What I get for online is:
[olpc@xo-93-20-69 prog]$ python testsoup.py
<enum SOUP_STATUS_OK of type SoupKnownStatusCode>
OK
What I get for offline is:
[olpc@xo-93-20-69 prog]$ python testsoup.py
<enum SOUP_STATUS_CANT_RESOLVE of type SoupKnownStatusCode>
Cannot resolve hostname (localhost)
Using F18 and rpm package libsoup-2.40.2-1.fc18.armv7hl
The bug in olpc trac: http://dev.laptop.org/ticket/12479
Attachment 234105, "Soup testcase":
testsoup.py
Version: 2.40.x