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'})] ->...
Search Result
Collapse
2 results in 0.0047 seconds.
Keywords
Members
Tags
-
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()...