Thanks for the information.
I've tried doing a POST from my .NET application to the API and indeed the
templates are expanded and i receive an XML response. There is, however, a
problem. If i'm sending several templates to be expanded at once (say, about
100), all appended one after the other, the Wikipedia API does not return
the expansion for all of them - the result is still a well-formed XML, but
the template expansion stops at some point (i can provide concrete examples
if needed). On the other hand, asking for expansion of the same concatenated
templates through the Wikipedia's Special:ExpandTemplates page works as
expected, all templates are expanded. Since it seems that both approaches
are based on the same functionality, what could I be doing wrong in my
application ? Are there any "HTTP settings" that need to be done, such as
headers ? Or is it the Wikipedia API which restricts the length of the
response ?
On Thu, Oct 14, 2010 at 7:54 PM, Roan Kattouw <roan.kattouw(a)gmail.com>wrote;wrote:
2010/10/14 Gabriel Sandor
<gabi.t.sandor(a)gmail.com>om>:
since it is impractical for long
templates (i assume there's a limit imposed on that query string)
You can POST
to the API too.
I've
also seen there's the special Wikipedia template expansion page
(
http://en.wikipedia.org/wiki/Special:ExpandTemplates ), but I don't
know if
and how I could access its functionality from my
application and how I
could
use it for several templates at once.
Special:ExpandTemplates has the same functionality as
action=expandtemplates AFAIK.
Roan Kattouw (Catrope)
_______________________________________________
Mediawiki-api mailing list
Mediawiki-api(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api