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 ?
2010/10/14 Gabriel Sandor <gabi.t.sandor@gmail.com>:
> since it is impractical for longYou can POST to the API too.
> templates (i assume there's a limit imposed on that query string)
Special:ExpandTemplates has the same functionality as
> 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.
>
action=expandtemplates AFAIK.
Roan Kattouw (Catrope)
_______________________________________________
Mediawiki-api mailing list
Mediawiki-api@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api