Subject HTTPS and a proxyserver
From Frans Vermeulen <fv@gbor.nl>
Date Thu, 29 Apr 2021 17:19:50 +0200
Newsgroups xb2net

Did anyone successfully establish connections through a HTTPS-proxy?

When I do this:

   // create an HTTP client instance
   oHttp := xbHTTPClient():new()

   oHTTP:SetProxy("proxyserver", 8080)

   ? "executing HTTP request..."
   oResponse := oHttp:Execute("http://www.website.com")

I get a response. (HTTP 403) which is correct: this is not allowed on this server.

If either I set an SSL-context to the xbHttpClient, or change the "http://..." in "https://..."
or change the port to 443, I can see that: no data with the proxy is exchanged. oResponse remains Nil.

I suspect in these cases, a secure connection is setup with the proxy, which is not understood by the proxy.
==> my guess comes from reading the following article.
https://stackoverflow.com/questions/58559109/difference-between-http-proxy-and-https-proxy

Am I missing the setting, that should be done, in order to establish an HTTPS-connection through a proxy?

Using Xb2Net 4.0

Regards,
Frans Vermeulen

Recent messages in this thread
 
-# HTTPS and a proxyserver (Current message) Frans Vermeulen 29-Apr-2021 11:19 am
.-# Re: HTTPS and a proxyserver Boris Borzic <.> 29-Apr-2021 04:56 pm
..-# Re: HTTPS and a proxyserver Frans Vermeulen 30-Apr-2021 04:21 am
...-# Re: HTTPS and a proxyserver Boris Borzic <.> 30-Apr-2021 10:48 pm
....-# Re: HTTPS and a proxyserver Frans Vermeulen 03-May-2021 04:58 am
.....\# Re: HTTPS and a proxyserver Boris Borzic <.> 03-May-2021 07:36 pm