[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Ftpapi] replicating a curl request



All I need to replicate a curl request to upload a PDF to a site from the System I release 7.1. Could someone assist since even though I’ve used HTTPAPI for retrieving XML documents and posting them I haven’t used it for uploading a file, and since I don’t know curl, I’m hoping someone can translate what it is doing and provide some help. I’d fight through it myself, but time is of the essence in providing a System I solution. Thanks.





curl --request POST --url

'https://test.service.com/api/now/attachment/file?table_name=u_total_statements&tablype=document%2Fpdf'

--header 'authorization: Basic SlN5bm93aWVjVGVzdDpUZXN0MTIzNA=='

--header 'cache-control: no-cache' --header 'content-type: document/pdf'

--header 'file_name: 29_March_2017.pdf' --header 'table_name:

u_total_statements' --header 'table_sys_id:

dab3ae544f3383006e5f6cd18110c790' --data 29_March_2017.pdf \



Thanks, Kevin
--
_______________________________________________
Ftpapi mailing list
Ftpapi@xxxxxxxxxxxxxxxxxxxxxx
http://scottklement.com/mailman/listinfo/ftpapi