you can just add --post-data= to the command to make a POST with wget, but parameters will stil be passed as a GET request (i.e. in the URL). If you want to pass the as post data, then pass them in --post-data with same format as a query string, e.g. --post- data='param1=value1¶m2=value2'
Cheers, Alexandre Emsenhuber Le 31 mai 09 à 14:03, Colonna Francois a écrit : > 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&gapfrom=&gapnamespace=10&gaplimit=max&format=xml' > > > T.xml > > that is the a typical GET request. > Best regards > F.C. > > > _______________________________________________ > Mediawiki-api mailing list > [email protected] > https://lists.wikimedia.org/mailman/listinfo/mediawiki-api _______________________________________________ Mediawiki-api mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
