On 2017-01-19 15:15, geoffreydebelie wrote:
Input (text/plain):
logintoken=85af2296d03f8ce504123b7733b0a7ad5880c782+\\&username=Smile4ever&password=*******&rememberMe=1
Output:
{
"error": {
"code": "badtoken",
"info": "Invalid CSRF token.",
"*": "See https://nl.wikipedia.org/w/api.php for API usage."
},
"servedby": "mw1288"
}
You are not URL-encoding the token. Make sure to URL-encode
(percent-encode) all of the parameter values.
--
Bartosz Dziewoński
_______________________________________________
Mediawiki-api mailing list
Mediawiki-api@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api