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@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=querytitles=Image:Andalusian_horse_moscow.jpgprop=imageinfoformat=jsoniiprop=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=querytitles=File%3AAndalusian_horse_moscow.jpgprop=imageinfoformat=jsoniiprop=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
___
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