asp.net - 是否可以在 web.config 中指定自动配置代理?

标签 asp.net web-config

我希望服务器 web.config 配置尽可能与客户端匹配。所有客户端都使用proxy auto-configuration script .

有没有办法在web.config中指定这个脚本文件?

最佳答案

是的

直属<configuration> :

  <system.net>
    <defaultProxy enabled="true" useDefaultCredentials="true">
      <proxy scriptLocation="--- your script location here ---" bypassonlocal="True" />
    </defaultProxy>
  </system.net>

关于asp.net - 是否可以在 web.config 中指定自动配置代理?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5060904/

相关文章:

asp.net - 将页脚贴在页面底部的方法

javascript - 如何停止进一步执行 JavaScript 事件

azure - 如何将 system.serviceModel 放入 ServiceConfiguration.cscfg (Windows Azure)

asp.net - Web 保护 ASP.NET 网站

wcf - webHttpBinding 安全不包含消息节点?

c# - 如何在 Asp.Net 的服务器端使用 JavaScript 对象?

c# - 从 Excel 工作表解析日期时间

.net - 加密应用服务连接字符串

c# - 如何在 web.config 文件中创建 <location> 标签?

asp.net - 如何在asp.net应用程序中获取Youtube嵌入式视频的描述?