Hi Dave, > Am 01.02.2018 um 16:28 schrieb Dave Kilroy via use-livecode > <use-livecode@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 kl...@major-k.de _______________________________________________ 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