post to cgi, JSON in Headers?

Bob Sneidar bobsneidar at iotecdigital.com
Wed Jan 31 19:16:27 EST 2018


As a file, or to a SQL database? I successfully store PDFs in a mySQL database as large blobs. For PDFs that are not large, a medium BLOB would probably be fine. I open the PDF for binary read, then read until EOF. But my PDFs are one or at most two page fillable forms. 

Bob S


> On Jan 31, 2018, at 08:25 , Klaus major-k via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> 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. :-(
> 
> Anyone knows what he is talking about and how I can add this to my scripts?
> Thanks a lot in advance!
> 
> 
> Best
> 
> Klaus
> --
> Klaus Major





More information about the use-livecode mailing list