New submission from Guillaume Desmottes <gdesm...@gnome.org>: To reproduce: - Launch a HTTP server listening on an Inet6 socket on, say, port 5555 - Try to connect using the IPv6 loopback: http = httplib.HTTPConnection('[::1]:5555') http.request('GET', '/foo') r = http.getresponse() print r.status - You get 400 (bad-request) instead of 404
It seems that's because the HTTP request is wrong. Python sends this header: Host: ::1:5555 but it should be: Host: [::1]:5555 I'm using python 2.5.2-1ubuntu1 on Intrepid. ---------- components: Library (Lib) messages: 80827 nosy: gdesmott severity: normal status: open title: httplib: wrong Host header when connecting to IPv6 loopback versions: Python 2.5 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue5111> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com