Question
· Nov 12, 2019

Http Request using SSL and proxy authentication

Hi,

I am trying to use the %Net.HttpRequest Class, and the request has to pass through a proxy server that requires authentication.

I am usually able to do that by using the following code:

S httprequest.ProxyServer=proxyServer
S httprequest.ProxyPort=proxyPort
S httprequest.ProxyAuthorization="Basic xyzxyzxyz"
 

I have a problem accessing a site that is accessible only using SSL-

The combination of the proxy authentication code and the SSL code-

S httprequest.Https=1
S httprequest.SSLConfiguration = "XYZ"
S httprequest.ProxyHTTPS=1
 

Does not work- I get the following error:

"<WRITE>zSend+180^%Net.HttpRequest"

If I set the ProxtTunnel property to 1, I get a different error-

Unable to write to socket with SSL/TLS configuration 'TEST', error reported 'SSL/TLS error in SSL_connect(), SSL_ERROR_SSL: protocol error, error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure'

Any advice?

If I simply open a browser on the server and navigate to the site, there is no problem,

So there should be a way to access it with the HttpRequest class (I hope..)

The URL is a public one- https://www.currency-iso.org/dam/downloads/lists/list_one.xml

 

Regards,

Nael

Discussion (5)1
Log in or sign up to continue