Simple JSON call

Magicgate Software - Skip Kimpel skip at magicgate.com
Tue Sep 9 16:44:31 EDT 2014


Richard,

That is what confused me.... was trying "it", "result", etc.  I was stress
testing what I could do with some complex PUT, GET, POST and DELETE
commands through some XML calls.  I was getting server results, just not
returning values.  urlResponse works beautifully.

Now I just need to parse the darn results :)  Luckily there are few tools
people have mentioned here to do that.

SKIP

On Tue, Sep 9, 2014 at 4:15 PM, Richard Gaskin <ambassador at fourthworld.com>
wrote:

> Trevor DeVore wrote:
>
>  On Tue, Sep 9, 2014 at 2:50 PM, Richard Gaskin wrote:
>>
>>  Trevor DeVore wrote:
>>>
>>>  "the urlresponse' will contain the data that the server sent back. Try
>>>> checking that after your put into URL call.
>>>>
>>>>
>>> When does the urlResponse differ from the value in "it"?
>>>
>>
>> put ... into URL doesn't populate 'it'. Nor does 'delete URL ...'.
>>
>> The urlresponse was added so that we could get the server response in
>> these
>> cases.
>>
>
> Ah - supercool.  I've been limiting my web APIs to use only POST, as I
> didn't realize we'd had a way to use PUT and DELETE.  In fact, I thought
> DELETE only worked for FTP - what version extended that for HTTP?
>
> I wonder if the team should consider using "it" for those as they do for
> GET and POST....
>
> --
>  Richard Gaskin
>  Fourth World Systems
>  Software Design and Development for the Desktop, Mobile, and the Web
>  ____________________________________________________________________
>  Ambassador at FourthWorld.com                http://www.FourthWorld.com
>
> _______________________________________________
> 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