Please use double quotes in the generated CURL command for windows support
See original GitHub issueThe generated curl command used single quotes but that doesn’t work for Windows users that have shell. Linux supports both single and double quotes. Changing --header=''
to --header=""
will enable windows users with curl to use it too 😃.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:4
- Comments:8 (8 by maintainers)
Top Results From Across the Web
How to send double quote in -d parameter for curl.exe?
My curl.exe works with this form: -d "{\"param\":\"value\"}". i.e. doublequotes around data, and doublequotes masked with backslash inside.
Read more >Sending a POST request via curl has issues with double quotes
curl --user "user" -X POST --data '{"description":"Created via API" ... You have to put the entire string inside double quotes " .
Read more >Docs: add double quotes to cURL commands (#276200) · Issues
Problem to solve. We have a lot of cURL examples in the docs, and some use double quotes for the URL, and others...
Read more >Proper escaping of double quotations for curl post data?
It's a kind of necroposting but I've had the same problem recently (with a different backend) and found that the reason is in...
Read more >How to pass the string in Curl with double quotes?
This is microsoft Teams API. I am passing this to change the default Timezone. This is working fine in postman. Please help me...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
That sounds like a reasonable approach.
What is your opinion on introducing a
quotes
option with the valuessingle
,double
, instead ofplatform
? It’s a little more explicit, and can automatically be set to the correct value by the CLI bin/httpsnippet.@ElleshaHackett seems like a good idea. @ahmadnassri do you have any history/justification on the single quotes?