TLS 1.2 not working in cURL

后端 未结 5 1290
有刺的猬
有刺的猬 2020-11-27 17:28

I am having trouble curling an HTTPS url that uses TLS1.2, in my curl operation I post my login data into the website and save it in cookiefile. The error message I am getti

5条回答
  •  Happy的楠姐
    2020-11-27 17:48

    Replace following

    curl_setopt ($setuploginurl, CURLOPT_SSLVERSION, 'CURL_SSLVERSION_TLSv1_2');
    

    With

    curl_setopt ($ch, CURLOPT_SSLVERSION, 6);
    

    Should work flawlessly.

提交回复
热议问题