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 roan.kattouw@gmail.comwrote:
2009/5/31 Colonna Francois colonna@lct.jussieu.fr:
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.phphttp://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 Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api