I need to ping a url to check it exists. The best answer I got is to use "head" request using CURL.
Setting the Request Method to HEAD is achieved by using [man]curl_setopt[/man].
Just to make sure I understand. I set CURLOPT_NOBODY to true. And when I exec the connection, I will receive only the headers?
Yes. A HEAD request will be sent.
TNX all