468,110 Members | 1,553 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

urllib fails to connect

I'm running ActiveState Python 2.5 on Windows XP. It used
to work fine. Today however I get (10061, 'Connection refused')
for any site I try with urllib.urlopen().
Aug 20 '08 #1
5 1551
I found out why. I set a proxy in IE and I didn't know
ActiveState Python use IE proxy!
I'm running ActiveState Python 2.5 on Windows XP. It used
to work fine. Today however I get (10061, 'Connection refused')
for any site I try with urllib.urlopen().

Aug 20 '08 #2
On Aug 20, 10:06*am, "jlist" <nos...@invalid.comwrote:
I'm running ActiveState Python 2.5 on Windows XP. It used
to work fine. Today however I get (10061, 'Connection refused')
for any site I try with urllib.urlopen().
May be the host is Listening on the port you are connecting to or the
host isnt availible

if u on a LAN try to ping the host first and Disable the Firewall on
Hosts Computer
Aug 20 '08 #3
jlist wrote:
I found out why. I set a proxy in IE and I didn't know
ActiveState Python use IE proxy!
>I'm running ActiveState Python 2.5 on Windows XP. It used
to work fine. Today however I get (10061, 'Connection refused')
for any site I try with urllib.urlopen().
Perhaps IE's proxy settings are effectively setting the Windows system
networking proxy settings?

Trent

--
Trent Mick
trentm at activestate.com
Aug 20 '08 #4
My guess is urllib.urlopen() wraps the wininet calls, which share
IE proxy settings.
Perhaps IE's proxy settings are effectively setting the Windows system
networking proxy settings?

Aug 20 '08 #5
jlist wrote:
My guess is urllib.urlopen() wraps the wininet calls, which share
IE proxy settings.
urllib doesn't use wininet, but it does fetch the proxy settings from
the Windows registry.

</F>

Aug 20 '08 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by C GIllespie | last post: by
11 posts views Thread by Pater Maximus | last post: by
4 posts views Thread by william | last post: by
6 posts views Thread by JabaPyth | last post: by
reply views Thread by Ali.Sabil | last post: by
4 posts views Thread by kgrafals | last post: by
5 posts views Thread by supercooper | last post: by
5 posts views Thread by John Nagle | last post: by
2 posts views Thread by Iain Dalton | last post: by
1 post views Thread by didacticone | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.