Is it possible in Python too?
Peter Hansen
peter at engcorp.com
Mon Feb 25 19:47:57 EST 2002
Matthew Sherborne wrote:
>
> > Is possible to set up a proxy name (address) in MS Explorer
> > browser from a running Python program?
> > Thank you for your help.
> > Ladislav
>
> Yes but I don't know how.
>
> Tell me how to do it in another language, and I'll tell you how in python ;)
I just set up a proxy in the Control Panel settings and searched
the registry. Turns out the key is under HKEY_CURRENT_USER\Software\
Microsoft\Windows\CurrentVersion\Internet Settings. ProxyServer
is set to "10.2.3.4:999" (my test value) and, among other things,
ProxyEnable is set to 1. Probably lots of documentation about this
stuff buried somewhere, if anyone cared. I don't.
(Oh yeah, the winreg module would presumably handle this all,
if you knew what to do.)
-Peter
More information about the Python-list
mailing list