curl / Mailing Lists / curl-and-php / Single Mail

curl-and-php

HTTPS Proxy & php

From: beshoo <beshoo_at_gmail.com>
Date: Sun, 5 Feb 2017 06:33:54 +0200

Dear all ,

My curl
curl 7.52.1 (x86_64-redhat-linux-gnu) libcurl/7.52.1 OpenSSL/1.0.1e
zlib/1.2.3 c-ares/1.12.0 libssh2/1.8.0 nghttp2/1.6.0
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3
pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: AsynchDNS IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL
libz HTTP2 UnixSockets HTTPS-proxy Metalink

which is suport HTTPS proxy AFAIK.

Please advice how can i use *HTTPS* Proxy in php ?

i use this code but it dos not works !

$ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_HEADER, 0);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_PROXYPORT, $proxy_port);
* curl_setopt($ch, CURLOPT_PROXYTYPE, 'HTTP');*
    curl_setopt($ch, CURLOPT_PROXY, $proxy_ip);
    curl_setopt($ch, CURLOPT_PROXYUSERPWD, $auth);
    $data = curl_exec($ch);
    curl_close($ch);

Regards

_______________________________________________
https://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2017-02-05