RESTful PUT error

Todd Fabacher tfabacher at
Mon Nov 27 07:27:33 EST 2017

What are you setting your headers to??  Are you sending JSON or posting a

This is to send a form and get back JSON. You may also want XML or TEXT

FYI, most RestAPI use POST.

*--Build the REST API Header*

*set* the httpHeaders to empty

*put* "Accept: application/json" & CR after tHeaders

*put* "Content-Type: application/x-www-form-urlencoded"  & CR after tHeaders

*set* the httpHeaders to tHeaders

People forget to set this in LiveCode, It makes a big difference.


More information about the use-livecode mailing list