[issue5072] urllib.open sends full URL after GET command instead of local path
Antoine Pitrou
report at bugs.python.org
Tue Jan 27 15:37:58 CET 2009
Antoine Pitrou <pitrou at free.fr> added the comment:
I suppose 172.18.2.7:3128 is the address:port of the your proxy, right?
In which case, urllib seems to do the right thing. When talking to an
HTTP proxy, requests are of the form "GET http://site.com/path", rather
than "GET /path". It's up to the proxy to strip the host part of the URL
when forwarding the request to the target server.
(but I suppose tracd could also be more permissive and allow the "GET
http://site.com/path" variant. It seems Apache does)
----------
nosy: +pitrou
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5072>
_______________________________________
More information about the Python-bugs-list
mailing list