PUT method where is returned data?

Mark Hsu mark.h at canelasoftware.com
Wed Feb 8 13:46:29 EST 2017


Try the urlResponse:

     PUT tJsonData into URL tURL
     
     put the urlResponse into tResult

Regards,

Mark Hsu
Canela Software
mark.h at canelasoftware.com <mailto:mark.h at canelasoftware.com>



> On Feb 8, 2017, at 10:05 AM, Bob Hall via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> 8.1.2 Indy with Desktop App
> 
> I am using an API that uses the PUT method for some of the calls. JSON is sent with server data as JSON. I can’t figure out how to access the returned JSON data from the PUT call. I can not effect the API call. It's a commercial SAAS application.
> 
> Here’s my snippet of code (everything is working with the PUT as far as I can tell. The  data in the JSON ends up in the server App where it should). I use the all caps PUT for my pea brain to understand this is a HTTP PUT method request ;-)
> 
> PUT tJsonData into URL tURL
> 
> put the result into tResult
> 
> put it into tResult2
> 
> 
> I would of thought that either the result or it would have the data but both are empty. If there is an error, I do see tsneterr in the result. Where do can I find the response data?
> 
> Thanks in advance,
> Bob Hall
> 
> Hosting, eCommerce, Website Design,
> Custom Apps, and yes, Bicycle Repairs
> 
> 
> _______________________________________________
> 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