From 451e41b1a8b7499b58ea35fe20f82bcd79e1a855 Mon Sep 17 00:00:00 2001 From: Naresh Jain Date: Wed, 20 Nov 2013 23:18:21 +0530 Subject: [PATCH] Need to set CURLOPT_SSLVERSION to 3 This is to avoid curl error no: 35 .i.e. Unknown SSL protocol error in connection to your_domain_name:443 --- wcurl.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wcurl.php b/wcurl.php index 757b321..a9d3e27 100644 --- a/wcurl.php +++ b/wcurl.php @@ -44,6 +44,7 @@ function wcurl_setopts($ch, $method, $payload, $request_headers, $curl_opts) CURLOPT_USERAGENT => 'wcurl', CURLOPT_CONNECTTIMEOUT => 30, CURLOPT_TIMEOUT => 30, + CURLOPT_SSLVERSION => 3, ); if ('GET' == $method) @@ -94,4 +95,4 @@ function wcurl_response_headers($msg_header) return $response_headers; } -?> \ No newline at end of file +?>