If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.
> Does anyone have a script that will cruise through a list of URL's
> and flag the ones that are no longer in use?
>
I haven't written a script to do that, but were I to do so I'd try MvCALL
to each URL with the HEAD method and parse the result for the server
response code. You'd definitely return a "no" for 404 and 403, a "Yes" for
200, and how you treat the other most common responses (e.g. 301, 302,
401) would depend on your circumstances.
It the list was likely to be more than a handful, you'd probably want some
timeout management or batching control. (How many urls make a handful? :-)
Comment