gooli <[EMAIL PROTECTED]> wrote: > Hi, > > I'm using urllib to get html pages from the web but my computer is > behind a proxy. > > The proxy is automatically configured in Internet Explorer via a > proxy.pac file (http://en.wikipedia.org/wiki/Proxy_auto-config). > >>From what I can see in the urllib source it only handles proxies that > are manually configured in IE and doesn't concern itself with > automatic configuration. > > Does anybody know of some code that can handle all the proxy > configuration variants? > Automatic proxy configuration involves retrieving a javascript file from a server and calling the javascript for each URL to find out which proxy to use. There really isn't any easy way to implement that in Python.
Your best bet may be to drive Internet Explorer through COM automation. -- http://mail.python.org/mailman/listinfo/python-list