The following url works in the browser, in script and in the message box:

   -
   
https://commons.wikimedia.org/w/api.php?action=query&titles=Image:Andalusian_horse_moscow.jpg&prop=imageinfo&format=json&iiprop=extmetadata|url

It does not however work when called from a script in Livecode server. It
does work when called by curl on the same server.

This script if run on your Livecode server should demonstrate the
difference:

<?rev
>     put "
> https://commons.wikimedia.org/w/api.php?action=query&titles=File%3AAndalusian_horse_moscow.jpg&prop=imageinfo&format=json&iiprop=extmetadata|url"
> into someUrl
>     put shell ("curl" && quote & someURL & quote) into someResult
>     delete line 1 to 4 of someResult
>     put url someURl & CR & someURL & CR & someResult
> ?>
>

Anyone have an idea why the server may not been doing the same thing as the
IDE or curl with this url?
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to