cURL use Non-SSL Proxy to get SSL page

Bijan

I am currently using cURL to POST some data to a SSL page (https://...). I am using the -x flag to have it go through a different IP. Unfortunately, this IP does not support SSL. Is there anyway I can use cURL to still POST the data even though SSL is not supported?

Edit: I am using the curl command, not PHP or any other language.

Daniel Stenberg

When doing SSL (or TLS rather) with a remote site over a HTTP proxy, the only way to do this is to send a HTTP CONNECT request to the proxy and have it setup a tunnel to the remote site.

curl will then connect over that tunnel and speak TLS. So, the proxy itself does not know or handle any TLS but it needs to support CONNECT appropriately. HTTP CONNECT is a standard part of the HTTP specification. Nothing magic.

This is thus what curl does when you do curl -x [proxy] https://[url]

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

cURL use Non-SSL Proxy to get SSL page

From Dev

squid ssl proxy (NON TRANSPARENT)

From Dev

Proxy Protocol on Elastic Load Balancing non-terminated SSL connection

From Dev

SSL Proxy with Genymotion and Charles?

From Dev

Force cURL to use GET on proxy for HTTPs requests

From Dev

curl SSL certificate error

From Dev

ssl certificate in curl

From Dev

SSL Certificate with PHP CURL

From Dev

curl SSL certification error

From Dev

curl 'SSL connect error'

From Dev

SSL cipher error with curl

From Dev

ssl certificate in curl

From Dev

Protocol SSL is not working with Curl

From Dev

SSL error with curl in Openshift

From Dev

SSL certificate error with curl

From Dev

curl using SSL on PHP

From Dev

Make Chrome use SSL tunnel as a proxy (HTTP CONNECT) for HTTP requests

From Dev

How to get around python requests SSL and proxy error?

From Dev

How to get SSL Observatory to use Tor?

From Dev

cURL error 60: ssl certification issue when attempting to use symfony

From Dev

Homebrew: "curl: (60) SSL certificate: unable to get local issuer certificate"

From Java

cURL error 60: SSL certificate: unable to get local issuer certificate

From Dev

Guzzle Curl Error 60 SSL unable to get local issuer

From Dev

Curl causes SSL: unable to get local issuer certificate

From Dev

can't get image using php CURL with SSL

From Dev

When I try to CURL a website I get SSL error

From Dev

Apache: redirect to non SSL page if TLS negotiation fails

From Dev

ARR proxy to tomcat with SSL forced

From Dev

SSL proxy error with tfsonline and teamcity