Is it possible (and if so, how to) totally replace the output from a Special page (including the sending headers etc)?
That is, can I use a SpecialPage as a SPARQL Endpoint and have it output pure RDF/XML (or similar) if a SPARQL query is sent to it via POST, while if not, it should just display the SpecialPage including a form for submitting a SPARQL query.
Samuel