I'm following the following help page, in order to receive an edit token (I'm using MW 1.14.0): http://www.mediawiki.org/wiki/API:Edit_-_Create%26Edit_pages
It tells to use the Url on the following form: api.php?action=query&prop=info|revisions&intoken=edit&titles=Main%20Page
But that gives me the following error:
<?xml version="1.0"?> <api> <error code="unknown_action" info="Unrecognized value for parameter 'action': query">
I've tried to execute the query with both GET (directly in the browser) and POST (via Curl in PHP) with the same result. Have also tried the following combinations with the same result: api.php?action=query&prop=info|revisions and api.php?action=query
Am I doing anything wrong, or is this the correct way to get an edit token?
Regards Samuel Lampa http://www.rilnet.com