urllib fails to connect

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • jlist

    #1

    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( ).


  • jlist

    #2
    Re: urllib fails to connect

    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( ).

    Comment

    • raashid bhatt

      #3
      Re: urllib fails to connect

      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

      Comment

      • Trent Mick

        #4
        Re: urllib fails to connect

        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

        Comment

        • jlist

          #5
          Re: urllib fails to connect

          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?

          Comment

          • Fredrik Lundh

            #6
            Re: urllib fails to connect

            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>

            Comment

            Working...