cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: curl_easy_setopt for SSL proxy

From: nir droid <nirdroid_at_gmail.com>
Date: Mon, 26 Jan 2009 01:06:51 +0200

On Mon, Jan 26, 2009 at 12:41 AM, nirdroid droid <nirdroid_at_gmail.com> wrote:

> my app uses proxy - both http and https
> the proxy has http port and https port
> so the code, as you suggest should be:
>
> 1. curl_easy_setopt(curl, CURLOPT_PROXY, "1.2.3.4");
> 2. curl_easy_setopt(curl, CURLOPT_PROXYPORT, 80);
> 3. curl_easy_setopt(curl, CURLOPT_PROXYPORT, 8443);
>
> doesn't #3 runs over #2?
>

or if you prefer:
curl_easy_setopt(CURLOPT_PROXY, "http://1.2.3.4:80")<https://sslproxy.com:8443/>
curl_easy_setopt(CURLOPT_PROXY,
"https://1.2.3.4:8443")<https://sslproxy.com:8443/>

doesn't #2 runs over #1?

there are many http urls that redirect to htts page (usually login page), so
if you use proxy, you need both http and https proxy
Received on 2009-01-26