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 /");