Thursday, 24 September 2020

post requset with curl for test node.js api

hi friends. I have a node.js api that I use express and multer (for handle file upload senario). I want to test a specific route(entry point) of the api that catch a post request with under parameters:filename:FILE & userID:1234 & name:majidNow I want to test this entry point with CURL command instead of postman. How to write the curl command format?For example this is incorrect:curl -X POST -F "errorLogFile=@/home/michael/Desktop/test.txt" -d "userID=1234&name=majidi" http://localhost:8080/errorLogs

Submitted September 24, 2020 at 09:08PM by majid-kakavandi

No comments:

Post a Comment