Guillaume Desmottes <gdesmott@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@bugs.python.org>
<http://bugs.python.org/issue5111>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
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@bugs.python.org>
<http://bugs.python.org/issue5111>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com