Advertisement
rfmonk

proxy_web_request_not_working.py

Jul 4th, 2014
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.44 KB | None | 0 0
  1. #!/usr/bin/env python
  2. #
  3. """
  4. You need a shell somewhere to test this out
  5. I dont connect this way, and it didnt work for
  6. me. I will revisit this later when Im not busy
  7. probably need to figure out the auth.
  8. """
  9. import urllib
  10.  
  11. URL = 'http://reverse.net'
  12. PROXY_ADDRESS = "69.162.163.6:8080"
  13.  
  14. if __name__ == '__main__':
  15.     resp = urllib.urlopen(URL, proxies = {"http" : PROXY_ADDRESS})
  16.     print "Proxy server returns response headers: %s " %resp.headers
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement