P
Praveen
Hi All,
I was facing problem using the HttpWebRequest class to make a connection to
a secure site with a proxy server. I am getting the below error
An unhandled exception of type 'System.NotSupportedException' occurred in
system.dll
Additional information: The ServicePointManager does not support proxies of
https scheme.
exception is thrown where the proxy is set to the webrequest object.
Thanks in advance,
Praveen
Code excerpt is :
System.Net.ServicePointManager.CertificatePolicy = new
TrustAllCertificatePolicy();
HttpWebRequest WebReqt = (HttpWebRequest)HttpWebRequest.Create(strFileURL);
WebProxy WP = new WebProxy(WebReqt.Proxy.GetProxy(new Uri( strFileURL)));
WP.Credentials = CredentialCache.DefaultCredentials;
WebReqt.Proxy = WP;
I was facing problem using the HttpWebRequest class to make a connection to
a secure site with a proxy server. I am getting the below error
An unhandled exception of type 'System.NotSupportedException' occurred in
system.dll
Additional information: The ServicePointManager does not support proxies of
https scheme.
exception is thrown where the proxy is set to the webrequest object.
Thanks in advance,
Praveen
Code excerpt is :
System.Net.ServicePointManager.CertificatePolicy = new
TrustAllCertificatePolicy();
HttpWebRequest WebReqt = (HttpWebRequest)HttpWebRequest.Create(strFileURL);
WebProxy WP = new WebProxy(WebReqt.Proxy.GetProxy(new Uri( strFileURL)));
WP.Credentials = CredentialCache.DefaultCredentials;
WebReqt.Proxy = WP;