[issue23448] urllib2 needs to remove scope from IPv6 address when creating Host header

2017-01-26 Thread Jonathan Guthrie
Jonathan Guthrie added the comment: Michael Sweet's draft RFC requiring that the scope should be included in the Host line expired in May 2014 and I can't find where it ever went anywhere. Does anyone have any updated information? -- nosy: +JonathanGuthrie ___

[issue23448] urllib2 needs to remove scope from IPv6 address when creating Host header

2017-01-25 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- nosy: +gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue23448] urllib2 needs to remove scope from IPv6 address when creating Host header

2015-02-12 Thread Demian Brecht
Changes by Demian Brecht : -- nosy: -demian.brecht ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue23448] urllib2 needs to remove scope from IPv6 address when creating Host header

2015-02-11 Thread Demian Brecht
Changes by Demian Brecht : -- nosy: +demian.brecht ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue23448] urllib2 needs to remove scope from IPv6 address when creating Host header

2015-02-11 Thread Martin Panter
Martin Panter added the comment: I’m no IPv6 expert, but there seems to be a few standards: * (Feb 2013). Encodes as http://[fe80::1%25eth0]/; says Windows uses this form. Also mentions the unencoded http://[fe80::1%eth0]/ form. Says that the HTTP Host hea

[issue23448] urllib2 needs to remove scope from IPv6 address when creating Host header

2015-02-11 Thread Neil Gierman
New submission from Neil Gierman: Using a scoped IPv6 address with urllib2 creates an invalid Host header that Apache will not accept. IP = "fe80:::::0001%eth0" req = urllib2.Request("http://["; + IP + "]/") req.add_header('Content-Type', 'application/json')