URL works in IDE, browser but not on Livecode Server

Peter W A Wood peterwawood at gmail.com
Wed Aug 5 08:05:13 CEST 2015


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 <david at viral.academy> 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
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode



More information about the use-livecode mailing list