Le 23/12/2009 20:40, Roan Kattouw a écrit :
> 2009/12/23 JonathanMM<[email protected]>:
>    
>> 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.
>    
I'm send the cookie of the log in at every API request.
> 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.
>    
I've the even error : badtoken :/
(My only request : 
http://www.nocle.fr/nolife-wiki/api.php?action=edit&title=Utilisateur:JonathanMM/Test_Trillian&section=new&summary=Test+Trillian&text=test&watch&token=%2B%5C&format=xmlfm)
JonathanMM

_______________________________________________
Mediawiki-api mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api

Reply via email to