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 = new WebProxy(new Uri("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!!

0

There are 0 best solutions below