---- On do, 19 jan 2017 15:22:11 +0100 Bartosz Dziewoński <[email protected]> 
wrote ----

 > 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.
 > 
Hi.

logintoken=85af2296d03f8ce504123b7733b0a7ad5880c782%2b%5c%5c&username=Smile4ever&password=*******&rememberMe=1
has the same result (I even tried with a newly requested login token):

{
  "error": {
    "code": "badtoken",
    "info": "Invalid CSRF token.",
    "*": "See https://nl.wikipedia.org/w/api.php for API usage."
  },
  "servedby": "mw1285"
}

Kind regards,
Geoffrey De Belie


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

Reply via email to