I'm using cUrl with Php (latest stable Ubuntu version) to get a remote https page, and curl_exec returns false after reaching timeout. Obviously I'm using theese settings:
curl_setopt($soap_do, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($soap_do, CURLOPT_SSL_VERIFYHOST, 0);
Using wireshark, it seems that the server doesen't answer after "Client Hello". Some strange facts:
- The same script written in perl runs by CLI in the same machine
- The exactly same code running an older machine correctly works
Hints? Someone suggests to recompile curl and openssl... I could do it on the development machine, but the production server has the same problem, and for ease of maintainance I'd like to keep only original packets there... Thanks!
httpsas the URL scheme and didn't miss off thes? I can see this behaviour happening if you try and initiate an SSL connection to a TCP port looking for plain text data only... I think it's highly unlikely this is a cURL problem. You could also try forcing a particular SSL version (CURLOPT_SSLVERSION, start with forcing v3). It's worth testing to see if you can do a simple HTTPS GET with cURL to e.g.https://google.com/