[issue8238] Proxy handling

Ciprian Trofin report at bugs.python.org
Fri Mar 26 09:43:55 CET 2010


Ciprian Trofin <ciprian.trofin at ktd.ro> added the comment:

I attached a screenshot.

The proxy is on the corporate network. I'm not setting it up, I'm only using it. Internet Explorer needs that setting in order to connect. Firefox needs this proxy set as "manual proxy configuration".

I looked deeper into the situatioan, usign the following (modified) script:

---------------------------------------------------
import time
import urllib2

timeMark = time.time()
opener = urllib2.build_opener()

proxy = urllib2.ProxyHandler({"http" : "http://10.249.1.63:80"})
opener.add_handler(proxy)

textWeb = opener.open("http://www.google.com/").read()

print time.time() - timeMark

---------------------------------------------------

The only difference from the script above: I set up the proxy manually.
I tested the new script in 2.6.5

With Windows proxy active: same problem, long waiting time.
With Windows proxy disabled: fast execution.

----------
Added file: http://bugs.python.org/file16667/proxy.png

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8238>
_______________________________________


More information about the Python-bugs-list mailing list