It may be this bug - http://quality.runrev.com/show_bug.cgi?id=15162 <http://quality.runrev.com/show_bug.cgi?id=15162> - depending on which version of LiveCode server you are running.
> On 5 Aug 2015, at 13:43, David Bovill <[email protected]> wrote: > > 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 > [email protected] > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
