Page 1 of 1
how to verify HTTPS url
Posted: Mon Mar 28, 2016 5:42 am
by munkitkat
Any one can you please explain how to verify, and send https url using curl_setopt.
Thanks!
Re: how to verify HTTPS url
Posted: Mon Mar 28, 2016 3:07 pm
by requinix
The only way it won't try to verify is if you specifically tell cURL not to. So... don't do that. Just make sure the URL starts with "https".
Re: how to verify HTTPS url
Posted: Mon Mar 28, 2016 5:11 pm
by Christopher
Here are a couple settings that apply to SSL that may help you identify the problem:
CURLOPT_SSL_VERIFYPEER
CURLOPT_SSL_VERIFYHOST
CURLOPT_CAINFO
And also:
CURLOPT_FOLLOWLOCATION