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

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
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