Jim Higson wrote:
How can I check if a page exists from a program?
I've tried doing a HEAD request to the page url with &action=raw, but that
returns 200 regardless if the page exists (bug or feature?). The only way
I can find at the moment is the Date and Last-Modified response headers
are the same if the article doesn't exist yet, but this seems a bit too
hackish.
Oops, actually the Last-Modified header is always one hour (to the second)
before Date if the article doesn't exist.
So testing for it just got hackier :)
--
Jim