Closed sjaintdl closed 4 years ago
Hi @sjaintdl
Could you please paste curl command you're using ??
Hi @jvalls-axa ,
I 'm using curl command below -
curl -X POST http://localhost:3001/api/v1/document -H 'Content-Type:multipart/form-data' -F 'file=@CSE.pdf;type=application/pdf' -F 'config=@"D:\Jain University\Final Year\Parsr\Parsr-0.11.2\Parsr-0.11.2\server\defaultConfig.json";type=application/json'
The issue is that CURL in Windows needs to use double quotes instead of singe quote.
Single quote - Failing
Double quotes - Working
Try this
curl -X POST http://localhost:3001/api/v1/document -H "Content-Type:multipart/form-data" -F "file=@CSE.pdf;type=application/pdf" -F "config=@D:\Jain University\Final Year\Parsr\Parsr-0.11.2\Parsr-0.11.2\server\defaultConfig.json;type=application/json"
We will improve our documentation to solve that issue.
Thanks @jvalls-axa , To help me on this.
hi @jvalls-axa , but when i using command below to download CSV file - curl -X GET http://localhost:3001/api/v1/csv/559842b883f4b161fead7ca1b29e7b?download=1
then it is not downloading ZIP file, it asking for -
Warning: Binary output can mess up your terminal. Use "--output -" to tell
Warning: curl to output it to your terminal anyway, or consider "--output
Warning:
And for other download API is not downloading, that only displaying the data on the terminal.
and when i am giving path but is saving as different file that you can see in attachments -
Hi
Just one Google search to find something like this
Hi @jvalls-axa ,
When i am trying to calling the API through CMD.exe using Curl command but it is giving error that you can see below -
<!DOCTYPE html>