2009/12/23 JonathanMM <jonathanmm(a)free.fr>fr>:
Hello,
I will use the mediawiki API to edit page in my wiki.
First, with POST requets, I make :
api.php?action=login&lgname=***&lgpassword=***&format=xml
I take the cookies and send, also in POST, :
api.php?action=query&prop=info|revisions&intoken=edit&titles=Utilisateur:JonathanMM/Test_Trillian&format=xml
I have a token. I take this token and use the urlencode function in this
token.
Then, I make :
http://www.nocle.fr/nolife-wiki/api.php?action=edit&title=Utilisateur:J…
Could you echo or var_dump() the value of $token and tell us?
Roan Kattouw (Catrope)