Aha, thanks Mark! That did it.
On 13/10/2017 18:23, Mark Waddingham via use-livecode wrote:
On 2017-10-13 12:15, Ben Rubinstein via use-livecode wrote:
I'm trying to debug a case where making some calls to an external API
works fine on desktop, but fails on mobile (both iOS and Android) with
"400 bad request".
Unfortunately it seems that libURLLastHTTPHeaders() and
libURLLastRHHeaders() aren't available on mobile. Is there some other
way to get the information on mobile (especially the latter)?
IIRC, if you are using Indy or Business, then tsNet will provide those
functions on mobile (it provides a libURL like interface on all platforms).
I believe you just need to make sure that you are including the Internet
library and tsNet inclusion in the s/b.
Warmest Regards,
Mark.
P.S. I'm pretty sure libURL also works on mobile in community - if you select
the Internet inclusion, although in that case it just plain libURL, no tsNet
as that requires Indy or Business.
_______________________________________________
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