I would like to get the HTTP status code of a URL using PHP. I think
CURL is the way to go but I can't see how to do it. I see I can use
curl_getinfo on the CURL session after I've curl_exec'ed it but I
can't see what options I should set to get CURL to only get the HTTP
status code and not retrieve the data at the URL.
Help gratefully received!
Thanks,
Geoff
CURL is the way to go but I can't see how to do it. I see I can use
curl_getinfo on the CURL session after I've curl_exec'ed it but I
can't see what options I should set to get CURL to only get the HTTP
status code and not retrieve the data at the URL.
Help gratefully received!
Thanks,
Geoff
Comment