[Python-Dev] Proxy settings for urllib on Win32

Fredrik Lundh Fredrik Lundh" <effbot@telia.com
Wed, 12 Jul 2000 17:32:51 +0200

neil wrote:

>    Is there any reason why urllib uses environment variables for proxy
> settings on Win32? Its quite unlikely they will be set up and there is =
> standard registry location for this information.

probably only laziness -- winreg is a recent addition,
after all.

>    I've added retrieval of registry settings to my copy of urllib and =
> seems to work OK athough I'm not running off CVS and I recall the =
> module has changed recently. Here is the code going just after the "if
> os.name =3D=3D 'mac'" proxy handling.

+1 from here.

cheers /F