Page MenuHomePhabricator
Paste P747

MW API errors
ActivePublic

Authored by mobrovac on Jun 9 2015, 10:44 AM.
Tags
None
Referenced Files
F176795: MW API errors
Jun 9 2015, 10:44 AM
F176794: MW API errors
Jun 9 2015, 10:44 AM
F176793: MW API errors
Jun 9 2015, 10:44 AM
F176792: MW API errors
Jun 9 2015, 10:44 AM
Subscribers
None
$ curl -v -XPOST -d 'action=edit&format=json&formatversion=2&title=Probna&text=yey' localhost:8080/w/api.php
< HTTP/1.1 200 OK
< Date: Tue, 09 Jun 2015 10:43:03 GMT
* Server Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.9 is not blacklisted
< Server: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.9
< X-Powered-By: HHVM/3.6.1
< X-Content-Type-Options: nosniff
< Cache-control: private, must-revalidate, max-age=0
< MediaWiki-API-Error: notoken
< X-Frame-Options: DENY
< Transfer-Encoding: chunked
< Content-Type: application/json; charset=utf-8
<
* Connection #0 to host localhost left intact
{"error":{"code":"notoken","info":"The token parameter must be set","docref":"See http://localhost:8080/w/api.php for API usage"}}

Event Timeline

mobrovac changed the title of this paste from untitled to MW API errors.
mobrovac updated the paste's language from autodetect to autodetect.
mobrovac edited the content of this paste. (Show Details)
mobrovac edited the content of this paste. (Show Details)
mobrovac edited the content of this paste. (Show Details)