curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

smart quotes warning

From: Karl Brown via curl-library <curl-library_at_cool.haxx.se>
Date: Fri, 1 Nov 2019 03:28:01 +0000 (UTC)

Hi,
Recently I copy/pasted a curl command from somewhere and dropped it into a terminal. It looked something like this:

 

curl -i https://postman-echo.com/post -d “foo=bar1&foo2=bar2”
It failed in bizarre way, and I couldn't figure out what was going on. Finally a colleague  suggested that 'smart quotes' may be to blame, and indeed they were.
I polled a couple of colleagues and they had also been bitten by this issue in the past.
So I'm wondering, would there be openness to adding a warning to curl, if it sees smart quotes on the command line, that it would say something to the user? I'd be willing to try a PR if there is agreement to try to implement this.
thanks for your input!

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2019-11-01