I get data via several proxys from external site (let it be fictional NotMySite.ru) with cURL PHP on virtual hosting. Some proxys worked nice, but some can't get data with error in topic.
See full log:
* Trying 45.15.237.221...
* TCP_NODELAY set
* Connected to 45.15.237.221 (45.15.237.221) port 5500 (#0)
* allocate connect buffer!
* Establish HTTP proxy tunnel to NotMySite.ru:443
* Proxy auth using Basic with user 'MGdfnF'
> CONNECT NotMySite.ru:443 HTTP/1.1
Host: NotMySite.ru:443
Proxy-Authorization: Basic TUdkZm5GOkJMTWRnZElONmw=
Proxy-Connection: Keep-Alive
< HTTP/1.0 200 Connection established
<
* Proxy replied 200 to CONNECT request
* CONNECT phase completed!
* ALPN, offering h2
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
* CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: /etc/ssl/certs
* OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to NotMySite.ru:443
* Closing connection 0
Googling gave me several options to fix the situation, but nothing helped.
I tried different options cURL for disable any SSL verifys and similar, e.c.:
CURLOPT_SSL_VERIFYHOST => false //all proxy not worked
CURLOPT_SSL_VERIFYPEER false
CURLOPT_SSLVERSION => 3 //all proxy not worked
CURLOPT_SSL_VERIFYSTATUS => false
Nothing helps..what other options?