curl-library
Re: PHP HTTPS Proxy
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 5 Feb 2017 11:38:42 +0100 (CET)
Date: Sun, 5 Feb 2017 11:38:42 +0100 (CET)
On Sun, 5 Feb 2017, beshoo wrote:
> Dear all ,
>
> Please advice how can i use *HTTPS* Proxy in php ?
And by this you mean HTTPS *to* the proxy, right? Just making sure that you're
not just talking about HTTPS to the remote server.
> * curl_setopt($ch, CURLOPT_PROXYTYPE, 'HTTP');*
This line says HTTP but you said HTTPS above.
The PHP documentation at
https://secure.php.net/manual/en/function.curl-setopt.php states that you
should set CURLPROXY_HTTP if you want a HTTP proxy (and not just a string
saying HTTP).
Based on that same documentation, it seems as if the PHP binding perhaps isn't
yet updated to handle CURLPROXY_HTTPS as type, which you should use if you
want HTTPS to the proxy.
-- / daniel.haxx.se ------------------------------------------------------------------- Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library Etiquette: https://curl.haxx.se/mail/etiquette.htmlReceived on 2017-02-05