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.
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.
Comments