post to cgi, JSON in Headers?

Klaus major-k klaus at major-k.de
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 lists.runrev.com>:
> 
> 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. :-(

Best

Klaus

--
Klaus Major
http://www.major-k.de
klaus at major-k.de





More information about the use-livecode mailing list