Page MenuHomePhabricator

categoryinfo doesn't seem to support post
Closed, DeclinedPublic

Description

Author: jutiphan

Description:
I tried to POST the parameters, but it returns <error code="help" info=""> with the autogenerated help document.

Example string I put in POST:
api.php?action=query&prop=categoryinfo&format=xml&titles=Category:Foo|Category:Bar

Please look into this. Thai language makes the URL extremely long even with few long categories, thus quickly exceeds the URL length limit.


Version: 1.13.x
Severity: enhancement
URL: http://th.wikipedia.org/w/api.php

Details

Reference
bz14661

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:11 PM
bzimport set Reference to bz14661.

Bryan.TongMinh wrote:

You need to POST only the query string part. Further you should make sure that your Content-Type is correctly set to application/x-www-form-urlencoded

Example request:

POST /w/api.php HTTP/1.0
Host: meta.wikimedia.org
Content-Type: application/x-www-form-urlencoded

action=query&prop=categoryinfo&format=xml&titles=Category:Foo|Category:Bar

This way it works for me. Not a bug.

jutiphan wrote:

Oh yes. My dad. sorry. It works fine now.