Tuesday 16 April 2013

Asp.Net: Bypass local proxy

Question:
How to bypass a local proxy when doing HttpWebRequests in dot.net?


Answer:
In your application config you can set the system.net settings
config sample
<system.net>
  <defaultProxy enabled="true" useDefaultCredentials="true">
    <proxy bypassonlocal="True" proxyaddress="http://proxy.yourdomain:port/" />
  </defaultProxy>
</system.net>



No comments: