Fork me on GitHub

在 .Net 设定 proxy 的方法

其实只要在 Machine.config (也就是 xxx.exe.config) 里面设定就可以了.
范例如下:
<configuration>
  <system.net>
    <defaultProxy>
    <proxy
      proxyaddress = "http://proxyserver:80"
      bypassonlocal = "true"
    />
    </defaultProxy>
  </system.net>
</configuration>

此方法, .Net mono 均适用.

posted @ 2005-10-18 23:16  张善友  阅读(1194)  评论(1编辑  收藏  举报