Web lists-archives.com

Re: [PHP] detect 404 pages




Hi Negin,

I haven't tried what you're after, but saw this on SO:

curl_setopt($handle, CURLOPT_NOBODY, 1); // and *only* get the header

(http://stackoverflow.com/a/21287969)

Does this help?

Patty

On Sun, Oct 25, 2015 at 7:58 PM, Negin Nickparsa <nickparsa@xxxxxxxxx>
wrote:

> Curl is slow detecting 404 pages.
>
> is there any other solution rather than using Curl and http code to detect
> 404 pages?
>