libURLLast/xx/headers on mobile?

Ben Rubinstein benr_mc at cogapp.com
Mon Oct 16 09:48:21 EDT 2017


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.
> 




More information about the use-livecode mailing list