Start a new topic

How to make https request through my proxy?

HTTP works:


> curl http://httpbin.org/get -x "http://API_KEY:@proxy.crawlera.com:8011

{

  "args": {}, 

  "headers": {

    "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9", 

    "Accept-Language": "en-US,en;q=0.9", 

    "Host": "httpbin.org", 

    "Referer": "", 

    "Sec-Ch-Ua": "\" Not A;Brand\";v=\"99\", \"Chromium\";v=\"90\", \"Google Chrome\";v=\"90\"", 

    "Sec-Ch-Ua-Mobile": "?0", 

    "Sec-Fetch-Dest": "document", 

    "Sec-Fetch-Mode": "navigate", 

    "Sec-Fetch-Site": "same-origin", 

    "Sec-Fetch-User": "?1", 

    "Upgrade-Insecure-Requests": "1", 

    "User-Agent": "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.72 Safari/537.36", 

    "X-Amzn-Trace-Id": "Root=1-60aacf3d-59713e967dfe684533ed686d"

  }, 

  "origin": "168.151.117.88", 

  "url": "http://httpbin.org/get"

}


But HTTPs doesn't:



> curl https://httpbin.org/get -x "https://API_KEY:@proxy.crawlera.com:8011"

curl: (35) error:1400410B:SSL routines:CONNECT_CR_SRVR_HELLO:wrong version number


What am I doing wrong?



1 Comment

From the support team:


===

For making HTTPS requests through Smart Proxy Manager, you should install or reference the certificate in a request, which is necessary for the HTTPS request to be made.

Here is the documentation on how to make secure HTTPS requests through Smart Proxy Manager.

===

Login to post a comment