I'm interested in converting an existing cURL command into Livecode, and once I get that working, adding a friendlier user input to it.
But I'm having problems getting the basic curl command to work.
Here are my questions:
Format questions:
1) the POST /body info is in json format. Do I need to include a library for this?
2) I have an auth token I need to pass into the header. Is it sufficient to put "quote" in front of it?
Or do I need to urlEncode it?
Setting data:
3) once I have my headers setup, I'm doing the following:
Code: Select all
set the httpHeaders to tHeaders
Then I'm posting the data to the url and putting the response in the message box:
Code: Select all
post tArgList to url "http:my_url"
put it into message
Thanks, help is much appreciated!
Diane