[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-bugs-list
Subject:    [Python-bugs-list] [Bug #111725] Response to bug 110619
From:       noreply () sourceforge ! net (noreply () sourceforge ! net)
Date:       2000-08-31 17:24:57
Message-ID: 200008311724.KAA04091 () delerium ! i ! sourceforge ! net
[Download RAW message or body]

Bug #111725, was updated on 2000-Aug-11 15:30
Here is a current snapshot of the bug.

Project: Python
Category: Documentation
Status: Closed
Resolution: Fixed
Bug Group: None
Priority: 5
Summary: Response to bug 110619

Details: It probably should be documented somewhere that for urllib, proxies will not \
work in the environment variable http_proxy The code looks at http://usr:pwd@com:8080 \
and parses the pwd@com:8080 as a port number and fails. It also ignores the proxy \
details here. If the proxy details are put into the url, as argument to urlopen, they \
still don't work, although they are parsed correctly. I'm behind a firewall and this \
bugged me for some time, as I always received a http error code of 407. Afyter some \
research of the protocol, etc. I finally resolved it by modifying urllib in the \
open_http method and changed the line:

if auth: h.putheader('Authorization',...
  to
if auth: h.putheader('Proxy-Authorization',...

and it worked! Needless to say, whatever aspect of the http protocol requires this to \
be 'Authorization' will of course now fail for my version of urllib, but at least the \
proxy part functions correctly. Sorry I can't give any better details as I am not an \
http guru, just fumbling along!

Hope this helps.

Cheers,
  Perry Faulkner

(Perry.Faulkner@macquarie.com.au)


Follow-Ups:

Date: 2000-Aug-25 11:01
By: jhylton

Comment:
Looks like this is a documentation request.

-------------------------------------------------------

Date: 2000-Aug-31 10:24
By: fdrake

Comment:
Modified documentation to clarify this behavior and note that this is an \
implementation limitation.  This should be fixed in some future version; the original \
                bug report has been marked as a feature request.
-------------------------------------------------------

For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=111725&group_id=5470


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic