proxy

zhaozj2021-02-16  55

Global Agent Example: This instance will make any

WebRequest

Can use the agent to communicate with the Internet

WebProxy ProxyObject = New WebProxy ("http: //webproxy: 80 /"); globalProxySelection.select = proxyObject;

If you want to use a specific request for some specific request if you want to use a specific request, you can follow:

WebRequest Req = new WebRequest.create ("http://www.contoso.com/"); Req.Proxy = New WebProxy ("http: // alternateProxy: 80 /");

转载请注明原文地址:https://www.9cbs.com/read-20826.html

New Post(0)