post to cgi, JSON in Headers?

Klaus major-k klaus at
Thu Feb 1 11:30:53 EST 2018

Hi Dave,

> Am 01.02.2018 um 16:28 schrieb Dave Kilroy via use-livecode <use-livecode at>:
> Klaus I wonder if he wants you to let the server know what kind of data
> you'll be sending up, it's not uncommon to set the headers this way when
> posting data to an API:
> put "Content-Type: application/json" into tHeaders
> set httpHeaders to tHeaders
> Good luck!

thank you, it is a tad more complicatd, but I'm in conversation with the developer already!

> Dave 
>> ...
>>> Hi friends,
>>> I am scripting a routine to upload a PDF file to a server.
>>> So far, so good-> libURLMultipartFormData() is my friend.
>>> but now the developer of the API send me two TOKENs for authentification
>>> and said: 
>>> "...and make sure you're posting the HTTP header data (the tokens) as
>>> application/json."
>>> ???
>>> Now he is not available for the next hours. :-(



Klaus Major
klaus at

More information about the use-livecode mailing list