I believe what you need to do is something like this:
oHttp := xbHTTPClient():new()
oSSL := xbSSLContext():new(TLS_client_method)
oHttp:SSLContext := oSSL
oResponse := oHttp:Execute("http://www.website.com")
Alternatively, you can use WinInet to use the Windows proxy settings:
oHttp:Transport == VIA_WININET
industrial strength Xbase++ development tools
Frans Vermeulen <firstname.lastname@example.org> wrote in
> 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.
> Am I missing the setting, that should be done, in order to establish
> an HTTPS-connection through a proxy?