Message80827
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. |
|
Date |
User |
Action |
Args |
2009-01-30 16:48:59 | gdesmott | set | recipients:
+ gdesmott |
2009-01-30 16:48:59 | gdesmott | set | messageid: <1233334139.62.0.259128767537.issue5111@psf.upfronthosting.co.za> |
2009-01-30 16:48:57 | gdesmott | link | issue5111 messages |
2009-01-30 16:48:56 | gdesmott | create | |
|