couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Le Brasseur <>
Subject Escape Character: Bash Shell
Date Wed, 25 Jan 2017 18:57:08 GMT
Hi and sorry.
Another curl command-line escape character question.

This command is not working:

curl -X PUT
http://user:pwd@ -H
"Content-Type: application/json" -d '{"Body":"I decided today that I don't
like baseball. I like plankton."}'

No response or if I alter quotation marks etc.etc. I
get {"error":"bad_request","reason":"invalid UTF-8 JSON"}

I have eliminated everything and the cause is the ' in don't.
I just don't know how to escape the ' correctly.(pun not intended)

I have actually tried every shell I can(Powershell, Bash and Windows
command line)


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message