Last modified: 2010-05-15 16:02:56 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T16661, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 14661 - categoryinfo doesn't seem to support post
categoryinfo doesn't seem to support post
Status: RESOLVED WORKSFORME
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
1.13.x
All All
: Normal enhancement (vote)
: ---
Assigned To: Roan Kattouw
http://th.wikipedia.org/w/api.php
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-06-27 06:14 UTC by Jutiphan
Modified: 2010-05-15 16:02 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Jutiphan 2008-06-27 06:14:03 UTC
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.
Comment 1 Bryan Tong Minh 2008-06-27 07:47:26 UTC
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.
Comment 2 Jutiphan 2008-06-27 08:15:30 UTC
Oh yes. My dad. sorry. It works fine now.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links