[Mediawiki-api] API bug with page titles with & in them ?

Roman Sokhan aka AS pustomytnyk at gmail.com
Tue Dec 7 20:02:06 UTC 2010


Why FR.wikipedia in second link?)

2010/12/7 Nicolas Vervelle <nvervelle at gmail.com>

> Hi,
>
> I made a few attempts but didn't success to use the API with page titles
> containing a & in them.
> I tried replacing it with %26 in the request but it seems to work only for
> some requests...
>
> For example, the following request seems to work:
> http://en.wikipedia.org/w/api.php?action=query&titles=Rollin' %26 Coastin'
> (In Search of America)&prop=info&inprop=protection|talkid<http://en.wikipedia.org/w/api.php?action=query&titles=Rollin'%20%26%20Coastin'%20(In%20Search%20of%20America)&prop=info&inprop=protection%7Ctalkid>
> I get the informations about page "Rollin&#039; &amp; Coastin&#039; (In
> Search of America)"
>
> But, the following request tells that the page is missing
>
> http://fr.wikipedia.org/w/api.php?rvprop=content|ids|timestamp&inprop=protection&prop=revisions|info&action=query&titles=Rollin<http://fr.wikipedia.org/w/api.php?rvprop=content%7Cids%7Ctimestamp&inprop=protection&prop=revisions%7Cinfo&action=query&titles=Rollin>'
> %26 Coastin' (In Search of America)
> The requests says that page "Rollin&#039; &amp; Coastin&#039; (In Search
> of America)" is missing
>
> Am I missing something or is there a bug in the API ?
>
> Thanks,
> Nico
>
>
>
>
> _______________________________________________
> Mediawiki-api mailing list
> Mediawiki-api at lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wikimedia.org/pipermail/mediawiki-api/attachments/20101207/dc7da8c8/attachment-0001.htm 


More information about the Mediawiki-api mailing list