curl -i -d "<rss><channel/></rss>"
curl -i -d "<rss/>" http://feeds.archive.org/validator/
The latter demonstrates a bug in the validator, which I will
leave unfixed for the moment to demonstrate fault responses
(complete with server side python stack traceback). This can
be put into a script on Unix/Windows thus:
curl -i -d "`cat $1`"
curl -i -d "@%1" http://feeds.archive.org/validator/
Thanks go out to
Jeffrey Winter for this nugget.
Two sets of headers?
HTTP/1.1 200 OK Date: Mon, 30 Dec 2002 20:38:09 GMT Server: Apache/1.3.26 (Unix) mod_xslt/t1.2 Transfer-Encoding: chunked Content-Type: text/xml Status: 500 Internal Error Content-type: text/xml <?xml version="1.0"?> .... Rich Salz at
And don't forget:
curl -i -d @your-rss.xml http://feeds.archive.org/validator/ @: upload the given file name. Jeffrey Winter at
Rich - oops! There comes a point in every application where you figure, nothing can go wrong after this point, and then wham, you realize that, yes, something can.
This failure was in applyTemplates, which is after the validation is complete... Anyway, it is now fixed. Thanks! Sam Ruby