Quantcast
Channel: Common Language Runtime Internals and Architecture forum
Viewing all articles
Browse latest Browse all 1710

c# Webrequest through https (configured) proxy (The ServicePointManager does not support proxies of https scheme)

$
0
0
 

Here seemes to be a better place, than stackoverflow. I would like a MSFT to again target this very important question. Or at least point to a working solution. THANK YOU

I need to connect to a https-url by using a proxy which also has a https address. My code is simply like this:

var webRequest =(HttpWebRequest)WebRequest.Create("https://reallywhatsthepoint.com");var proxy =newWebProxy(newUri("https://proxyaddress:port"));
webRequest.Proxy= proxy;WebResponse webResponse = webRequest.GetResponse();

Doing this I get a well known Error:

The ServicePointManager does not support proxies of https scheme

No credential-code here for simplicity. And no, the users will not change the proxy to http.

Now there are some hints, that this cannot be achieved like: Microsoft blog or MSDN forum but these are all a little old and this states, that at least Chrome and Firefox seem to have a solution to that issue.

Can anyone tell me, how to get to a https address through a proxy which itself can only be reached through https?

The ServicePointManager should be able to do this by now, is there some development?

Thx!!


JEns D.


Viewing all articles
Browse latest Browse all 1710

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>