HOWTO: Using IE proxy settings (including credentials!)

Published 23 March 05 11:40 AM

Very easy but hard to find.

System.Web.Services.Protocols.SoapHttpClientProtocol proxy = ...
System.Net.WebProxy ieProxy = System.Net.WebProxy.GetDefaultProxy();
if (ieProxy != null && ieProxy.Address != null)
{
   ieProxy.Credentials = System.Net.CredentialCache.DefaultCredentials;
   proxy.Proxy = ieProxy;
}
proxy.PreAuthenticate = true;

by giuliov
Filed under:

Comments

# Rosa said on February 16, 2006 11:54 AM:
Hi...
New Comments to this post are disabled

This Blog

Syndication

Page view tracker