468,107 Members | 1,302 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,107 developers. It's quick & easy.

urllib.getproxies and PAC

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?

Thanks.

Nov 1 '07 #1
1 4180
gooli <eg****@gmail.comwrote:
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.
Nov 1 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Richard Shea | last post: by
11 posts views Thread by Pater Maximus | last post: by
reply views Thread by Shane Hathaway | last post: by
reply views Thread by Pieter Edelman | last post: by
1 post views Thread by Timothy Wu | last post: by
4 posts views Thread by william | last post: by
6 posts views Thread by justsee | last post: by
5 posts views Thread by supercooper | last post: by
5 posts views Thread by chrispoliquin | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.