Chilkat Forum

Technologies => REST / HTTP / HTTPS => Topic started by: Pasculescu Liviu on February 19, 2018, 05:12:48 AM

Title: VFP9 -> endpoint/REST/JSON/node.js
Post by: Pasculescu Liviu on February 19, 2018, 05:12:48 AM
Hi,

http://portal.xxx.ro/api/result
POST

Header: (Key->Value)
Content-Type -> multipart/form-data
Authorization -> apikey c42c1e31-9b99-xxxx-xxxx-xxxxxxxxxxxx

Body: (Key->Value)
bulletin_no -> 18104T0065
pacient_name -> Pop Maria
bulletin_date -> 2018-01-08 07:28:00
lab_cod -> 001
lab_name -> Cluj
pacient_cnp -> 1611113354792
file -> 18104T0065.pdf
permission[0][username] -> 185xxxxxxxxxx
permission[0][email] -> pl@yahoo.com
permission[0][type] -> pacient

If I call the REST endpoint service in Postman with the parameters above, it works well.
How can I call it using the Chilkat object inside VFP9 ?
How to paste the .pdf file, that is located somewhere on the local disk, in httprequest body, json format?

Thank you very much,