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

2009-07-02 Thread chkneo
chkneo added the comment: Attaching the test patch -- Added file: http://bugs.python.org/file14430/5311_test.diff ___ Python tracker <http://bugs.python.org/issue5

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

2009-07-02 Thread chkneo
Changes by chkneo : Added file: http://bugs.python.org/file14425/5111.diff ___ Python tracker <http://bugs.python.org/issue5111> ___ ___ Python-bugs-list mailin

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

2009-07-02 Thread chkneo
Changes by chkneo : Removed file: http://bugs.python.org/file14424/5111.diff ___ Python tracker <http://bugs.python.org/issue5111> ___ ___ Python-bugs-list mailin

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

2009-07-02 Thread chkneo
chkneo added the comment: RFC 2732 Section three have the following details. host = hostname | IPv4address | IPv6reference ipv6reference = "[" IPv6address "]" The patch contains check for : and

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

2009-07-02 Thread chkneo
chkneo added the comment: As per the RFC 2732 host header should be wrapped with []. I am attaching patch for this too which is applied on trunk(2.7) -- keywords: +patch nosy: +chkneo type: -> behavior Added file: http://bugs.python.org/file14424/5111.d