[issue5111] httplib: wrong Host header when connecting to IPv6 litteral URL

Guillaume Desmottes report at bugs.python.org
Fri Jan 30 18:06:45 CET 2009


Guillaume Desmottes <gdesmott at gnome.org> added the comment:

Actually, this bug is present when you try to connect to any URL
containing an IP6 and a port.

So, we have the same problem when using, for example:
http = httplib.HTTPConnection('[2a01:8790:16d:0:218:de87:164:8745]:5555')

but
http = httplib.HTTPConnection('[2001:4860:0:1001::68]:80')

does work. Probably because we use the default HTTP port.

----------
title: httplib: wrong Host header when connecting to IPv6 loopback -> httplib: wrong Host header when connecting to IPv6 litteral URL

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5111>
_______________________________________


More information about the Python-bugs-list mailing list