You are not logged in.
I'm currently using curl within a php script to communicate via https. Upon upgrading openssl to "openssl 1.0.1.e-3" it no longer works, my attempted connection will just timeout.
I can verify if was this package update as I had another arch box working fine and upgraded php, curl, and openssl ope at a time an it wasn't until the final update of openssl that is stopped working.
I'm running php version 5.4.16 and curl 7.30.
Here is my php code:
// Configure curl for website
curl_setopt($curl, CURLOPT_URL, "https://".$hostname.$path);
curl_setopt($curl, CURLOPT_USERAGENT, "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.79 Safari/537.4");
curl_setopt($curl,CURLOPT_POST, count($fields));
curl_setopt($curl,CURLOPT_POSTFIELDS, $fields_string);
curl_setopt($curl, CURLOPT_HEADER, true);
//curl_setopt($curl, CURLOPT_COOKIE, "visitedDashboard=1; PHPSESSID=eba59b4e234b3e320fc1b9223541f71f; test-persistent=1; __utma=262503198.767931780.1
curl_setopt($curl, CURLOPT_COOKIE, $m[1]);
// Set up to view correct page type
//curl_setopt(#curl, CURLOPT_HTTPHEADER, &$headers);
// Turn on SSL certificate verfication
//curl_setopt($curl, CURLOPT_CAPATH, "/usr/local/www/vhosts/<yourdomainname>/httpdocs/cacert.pem");
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0);
//curl_setopt($curl, CURLOPT_SSL_VERSION, 2);
// Tell the curl instance to talk to the server using HTTP POST
curl_setopt($curl, CURLOPT_POST, 1);
// 1 second for a connection timeout with curl
curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 2);
// Try using this instead of the php set_time_limit function call
curl_setopt($curl, CURLOPT_TIMEOUT, 60);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
echo "Waiting...\n";
$result = curl_exec($curl);
Thank you!
Brendan
Offline