[Python-bugs-list] [ python-Bugs-445815 ] urllib doesn't handle proxy exceptions
noreply@sourceforge.net
noreply@sourceforge.net
Tue, 11 Dec 2001 14:46:09 -0800
Bugs item #445815, was opened at 2001-07-29 19:01
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=445815&group_id=5470
>Category: Python Library
Group: Python 2.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Dylan Jay (djsq)
Assigned to: Nobody/Anonymous (nobody)
Summary: urllib doesn't handle proxy exceptions
Initial Comment:
When using urllib in a firewall environment when a
proxy is set, the proxy will be used for all
connections regardless of if the host is located
inside or outside the firewall. Localhost is a good
example of this.
Under a windows environment the registry contains a
proxy exception list which contains patterns which
match hosts that should not be directed through the
proxy. This should be used.
Under other environments perhaps an environment
variable be used to determine the exceptions
eg
http_proxy_expceptions
= "*.mydomain.com;*.myotherdomain.com"
Localhost should never be directed through a proxy.
----------------------------------------------------------------------
>Comment By: Guido van Rossum (gvanrossum)
Date: 2001-12-11 14:46
Message:
Logged In: YES
user_id=6380
I think there's code in urllib.py that tries to do exactly
wht you're saying. It's towards the end of urllib.py, after
"elif os.name == 'nt':". Can you perhaps instrument that
code with a few print statements to see why it doesn't do
what you expect? I can't debug this because we don't have a
proxy set up here, and I have no idea how to configure this
information on Windows.
It might help if you explained is which Windows version (95,
98, 2K, ME, XT?), of if you have experienced this on
multiple Windows versions.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=445815&group_id=5470