Page MenuHomePhabricator

MW API errors

Authored By
mobrovac
Jun 9 2015, 10:44 AM
Size
723 B
Referenced Files
None
Subscribers
None

MW API errors

```
$ 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"}}
```

File Metadata

Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
170464
Default Alt Text
MW API errors (723 B)

Event Timeline