I was taught the following code would do but I want to see if you people do it differently or not.
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
You might do it like this ...
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, TRUE);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, TRUE);
But is there any other way than VERIFYPEER & VERIFYHOST ?
And, what does it mean by VERIFY PEER ? I guess the VERIFYHOST means cURL will check the SSL certificate of the website. Correct ? Yes or no ?