Windows: curl with json data on the command line

后端 未结 2 1501
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-06 17:20

I am running the following command in Windows prompt:

curl -XPUT http://127.0.0.1:9200/test-index/test-type/_mapping?pretty=true -d \'{\"test-type\": {\"prop         


        
2条回答
  •  春和景丽
    2020-12-06 17:40

    Windows's cmd doesn't support strings with single quotes. Use " and escape the inner ones with \".

提交回复
热议问题