Sunday, June 22, 2008

Set proxy for WebRequest in web.config

Put this in web.config, you can set usesystemdefault but for me that dont work.


<system.net>
<defaultproxy>
<proxy
usesystemdefault="false"
proxyaddress="http://192.168.1.1:3128"
bypassonlocal="true"
</proxy>
</defaultproxy>
</system.net>

Keys: asp.net, webrequest, proxy.

No comments: