**I already searched stackoverflow as well as other sources unfortunately i got no perfect solution to solve this issue even i tried every way so my request is help in code not share any links **
i am using ZeroXIII - 13.3.2 on windows 7 here is my php Curl function for download web pages
function gdllssl3($target_url) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.100 Safari/537.36');
curl_setopt($ch, CURLOPT_URL,$target_url);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_FAILONERROR, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_AUTOREFERER, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt ($ch, CURLOPT_CAINFO, "D:\cacert-2019-05-15.pem");
curl_setopt($ch, CURLOPT_SSLVERSION,4);
curl_setopt($ch, CURLOPT_TIMEOUT,10);
$html= curl_exec($ch);
if (!$html) {
echo "<br />cURL error number:" .curl_errno($ch);
echo "<br />cURL error:" . curl_error($ch);
}
return $html;
}
echo $url=gdllssl3('https://www.ratemyagent.com.au/real-estate-profile/sales/new-south-wales/agents');
it return me this error
cURL error number:35 cURL error:error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure
using latest CA certificates extracted from Mozilla
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
this is VERY BAD and SHOULD NOT be done. You open yourself to hijacking attacks, and basically this voids any usefulness of doing HTTPS (TLS), you might as well do HTTP. – Patrick Mevzek