Am 14.08.2005 um 09:19 schrieb andres:
no chance
asking only the header from a existing page [http://
de.wikipedia.org/wiki/Hauptseite] delivers:
HTTP/1.0 200 OK... and from a non existing Page i get HTTP/
1.0 200 OK...
Testing the Special:Export
HTTP/1.0 301 Moved Permanently
in both cases, existing page and non existing
Who said it would be easy?
Export gives you a XML and you have to read this file, sure if you
only ask for the header you can save a lot of traffic, but that's the
best solution for now.
http://de.wikipedia.org/w/index.php?
title=Spezial:Export&action=submit&pages=Berchtesgaden
http://de.wikipedia.org/w/index.php?
title=Spezial:Export&action=submit&pages=not_existing
You only have to parse it and see if there's a <page> in it.
ciao, tom
--
http://de.wikipedia.org/wiki/Benutzer:TomK32
http://www.tomk32.de