Visual Studio Code

Using Python behind the proxy server

Yeah, like the title.

If you are using your computer behind the proxy and you want to write a Python script connect to a website and display a content.

I tried to use socket library but it’s failed and have the error message below :


After searching on Google and found a useful link on StackOverFlow website. I change to use urllib2 and I can connect to website through my proxy server.


Actually I allways find solution from this website, thank the guy who created it.