2009/12/23 JonathanMM <jonathanmm(a)free.fr>fr>:
No problem :
var_dump($token);
string(38) "cf34d859be3d7ee167bab0c2afafdfda%2B%5C"
The token looks OK. What I think the problem is is that you're not
passing the login cookies back.
When you log in, the API sends you a couple of cookies. You need to
store these cookies and send them back in every subsequent request.
Whichever library you're using to do your HTTP requests probably has
an interface for this.
To test if this assessment is correct, hardcode $token to "%2B%5C" and
see if that either produces a working edit by an anonymous user or a
permissions error.
Roan Kattouw (Catrope)