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 :

Untitled

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.

Untitled1

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

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s