couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Le Brasseur <johnlebrass...@gmail.com>
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@127.0.0.1:5984/testdb/4e2a2835b2dc1f424b0d5ef14400zzzz -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)


John

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