Le dimanche 31 mai 2009 à 00:05 +0200, Platonides a écrit :
Colonna Francois wrote:
Hello,
I am new in using Api.
Several APi actions have this Note :
Note: In this example, all parameters are passed in a GET request just for the sake of simplicity. However, action=move requires POST requests; GET requests will cause an error.
( http://www.mediawiki.org/wiki/API:Edit_-_Move ) for instance.
I have no idea of how I can make a POST request with a MediaWiki. Would it be possible to make POST point on a page like : "How to do a POST request" in the documentation ?
I am sure I am missing something obvious, but I did not find any solution.
Thanks for helping.
Francois Colonna
It depends on your framework. How are you calling the API?
with wget :
wget -O - 'http://localhost/~wiki/mediawiki/api.php?action=query&generator=allpages...' > T.xml
that is the a typical GET request. Best regards F.C.