Search Result

Collapse
2 results in 0.0047 seconds.
Keywords
Members
Tags
urllib2.proxyhandler
  •  

  • rx
    Guest started a topic urllib2.ProxyHandler

    urllib2.ProxyHandler

    I'm trying to hide my IP with the following code:

    import urllib2
    proxy=[urllib2.ProxyHa ndler({'http':' 24.232.167.22:8 0'})]
    opener=urllib2. build_opener(pr oxy)
    f=opener.open(' http://www.whatismyipa ddress.com')
    print f.read()

    But that didn't work - my real IP showed up.

    Then I made the following replacement:

    proxy=[urllib2.ProxyHa ndler({'http':' 24.232.167.22:8 0'})] ->...
    See more | Go to post

  • Andre Bocchini
    Guest started a topic Proxy Authentication using urllib2

    Proxy Authentication using urllib2

    I'm having some trouble using proxy authentication. I can't figure out
    how to authenticate with a Squid proxy. I know for a fact the proxy is
    using Basic instead of Digest for the authentication. I can
    authenticate just fine using Mozilla. I've done some Google searches,
    but the closest piece of code I've is is for HTTPBasicAuthHa ndler:

    # set up authentication info
    authinfo = urllib2.HTTPBas icAuthHandler()...
    See more | Go to post
Working...