npocmaka / batch.scripts

batch script utils and examples by npocmaka -
https://www.linkedin.com/in/npocmaka/
MIT License
1.07k stars 874 forks source link

Trying to get response using winhttpjs.bat but there is something wrong I'm doing #33

Open bils7922 opened 3 years ago

bils7922 commented 3 years ago

Hi I'm Trying to get response from my website using your tool "winhttpjs.bat" but it's not working, what I'm doing wrong? sorry... I have poor knowledge about api and batch file.

files: 1-call.bat call winhttpjs.bat https://*********** -method POST -body-file body.json -saveTo response.txt 2-body.json { "email":"****@****.***", "key":"*******************" } 3-and your tool: winhhtpjs.bat

when I run call.bat the cmd popup for a second and then an EMPTY response.txt file created!! the email and key info are correct but for testing only.