Hi,
I'm not able to login using clientlogin. Any help is appreciated. Below things I've already tried:
POST https://nl.wikipedia.org/w/api.php?action=query&meta=tokens&type=log...
Output:
{
"batchcomplete": "",
"query": {
"tokens": {
"logintoken": "85af2296d03f8ce504123b7733b0a7ad5880c782+\"
}
}
}
POST https://nl.wikipedia.org/w/api.php?action=clientlogin&loginreturnurl=htt...
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"
}
Input (application/json):
{
"logintoken": "85af2296d03f8ce504123b7733b0a7ad5880c782+\",
"username": "Smile4ever",
"password": "*******"
}
Output:
{
"error": {
"code": "notoken",
"info": "The "token" parameter must be set.",
"*": "See https://nl.wikipedia.org/w/api.php for API usage."
},
"servedby": "mw1278"
}
window.onbeforeunload = function() {}
Kind regards,
Geoffrey De Belie