wget does indeed support this, using the --save-cookies and --load-cookies options. (See the man-page, e.g. http://www.gnu.org/software/wget/manual/wget.html, for details.)
-Ran (User:Ruakh on WMF projects) On Sun, May 31, 2009 at 3:07 PM, Roan Kattouw <[email protected]>wrote: > 2009/5/31 Colonna Francois <[email protected]>: > > What can I do to tell wget which user is sending a request. > > I tried > > > > wget --post-data='user=colonna&password=...&action...&format=xml' -O - ' > http://localhost/~wiki/mediawiki/api.php<http://localhost/%7Ewiki/mediawiki/api.php>' > > T.xml > > > > I still have : > > > > Action 'move' is not allowed for the current user > > > > Thanks for helping. > > Francois Colonna > You have to login first and pass the cookies you received; I'm not > sure this is something wget can do, so you might wanna look for a more > advanced client library that supports this. There are even dedicated > client libraries for the MediaWiki API, see > http://www.mediawiki.org/wiki/API:Client_Code . > > Roan Kattouw (Catrope) > > _______________________________________________ > 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
