RESTful PUT error
Todd Fabacher
tfabacher at gmail.com
Mon Nov 27 07:27:33 EST 2017
What are you setting your headers to?? Are you sending JSON or posting a
form??
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.
--Todd
More information about the use-livecode
mailing list