This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gdesmott
Recipients gdesmott
Date 2009-01-30.16:48:56
SpamBayes Score 0.00060427893
Marked as misclassified No
Message-id <1233334139.62.0.259128767537.issue5111@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2009-01-30 16:48:59gdesmottsetrecipients: + gdesmott
2009-01-30 16:48:59gdesmottsetmessageid: <1233334139.62.0.259128767537.issue5111@psf.upfronthosting.co.za>
2009-01-30 16:48:57gdesmottlinkissue5111 messages
2009-01-30 16:48:56gdesmottcreate