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)
2009/5/31 Colonna Francois <colonna@lct.jussieu.fr>:
> What can I do to tell wget which user is sending a request.You have to login first and pass the cookies you received; I'm not
> I tried
>
> wget --post-data='user=colonna&password=...&action...&format=xml' -O - 'http://localhost/~wiki/mediawiki/api.php' > T.xml
>
> I still have :
>
> Action 'move' is not allowed for the current user
>
> Thanks for helping.
> Francois Colonna
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