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
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to