Getting SSL error when sending CURL command to proxy.
search cancel

Getting SSL error when sending CURL command to proxy.

book

Article ID: 224673

calendar_today

Updated On:

Products

ProxySG Software - SGOS

Issue/Introduction

An application is using a CURL command to send a request through the proxy and getting the following error:

curl: (35) error:1408F10B:SSL routines:ssl3_get_record:wrong version number

Environment

The application are having two files to set the proxy settings, each for a different protocols - one is for HTTP protocol and the other one is for HTTPS protocol.

For example, the proxy IP is 1.2.3.4 and the proxy service port that it listens to is port 8080.

For the HTTP file setting - the proxy setting looks like this - "http://1.2.3.4:8080".

For the HTTPS file setting - the proxy setting looks like this - "https://1.2.3.4:8080".

Resolution

Change the HTTPS file proxy setting to use "HTTP" instead of "HTTPS".

Eg: "http://1.2.3.4:8080"