NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Using an HTTP Proxy

If your site uses an HTTP proxy to provide access to the Web, you must configure a global proxy instance to enable your application to communicate with the Web proxy. The following code will create a proxy instance that will enable a WebRequest to use a proxy to communicate with the Internet. It assumes that the proxy host is named "webproxy" and that it communicates on port 80, the standard HTTP port:

DefaultControlObject proxyObject = 
     new DefaultControlObject("webproxy",80);
GlobalProxySelection.Select = proxyObject;