TLS 1.2 not working in cURL
You must use an integer value for the CURLOPT_SSLVERSION value, not a string as listed above Try this: curl_setopt ($setuploginurl, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1_2); // constant NOT string value http://php.net/manual/en/function.curl-setopt.php value should be an integer for the following values of the option parameter: CURLOPT_SSLVERSION One of: CURL_SSLVERSION_DEFAULT (0) CURL_SSLVERSION_TLSv1 (1) CURL_SSLVERSION_SSLv2 (2) CURL_SSLVERSION_SSLv3 (3) CURL_SSLVERSION_TLSv1_0 (4) CURL_SSLVERSION_TLSv1_1 … Read more