Access the internet behind a proxy programmatically in .net

If you are behind a http proxy, and wanting your application to connect to a REST or Web Service, it is likely you will not be able to, and will get a Http Status code of 407 back.

However, you can pop the following into app.config/web.config, and your application will use the same proxy settings as Internet Explorer.


  
    
    
    
  


Hope that helps someone else.

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)
This entry was posted in Uncategorized. Bookmark the permalink.