CouchDB cURL Windows Command Line Invalid JSON

前端 未结 2 1285
小蘑菇
小蘑菇 2021-01-03 23:44

Running the following command from a Windows command line using cURL attempting to post a new document to an existing CouchDB database (named test) fails:

cu         


        
2条回答
  •  有刺的猬
    2021-01-04 00:34

    You have to quote also the whole statement to support spaces like: -d "{\"title\":\"There is Nothing Left to Lose\" , \"artist\":\"Foo Fighters\"}"

提交回复
热议问题