Is it possible to specify an automatic configuration proxy in web.config?
I'd like the server web.config configuration to match the client as closely as possible. All clients use 开发者_开发知识库a proxy auto-configuration script.
Is there any way to specify this script file in web.config?
Yes
Directly under <configuration>
:
<system.net>
<defaultProxy enabled="true" useDefaultCredentials="true">
<proxy scriptLocation="--- your script location here ---" bypassonlocal="True" />
</defaultProxy>
</system.net>
精彩评论