in reply to Checking for an existing URL
I thing you should try HEAD instad of GET. If all you want to know is whether the URL is fine, why would you download the whole document? :-)
Another thing. $response->code() returns the HTTP status code. So you do not have to search for anything in the contents. Besides ... it's quite possible that the HTML with the "URL not found" message will NOT contain any 404 at all.
Jenda
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
•Re: Re: Checking for an existing URL
by merlyn (Sage) on Sep 29, 2002 at 15:22 UTC | |
|
Re: Re: Checking for an existing URL
by PodMaster (Abbot) on Sep 30, 2002 at 06:35 UTC |