Escaping curl command in Windows

前端 未结 3 1338
走了就别回头了
走了就别回头了 2021-01-13 13:46

I\'m trying to run a curl command from the command line in Windows, but for the life of me I can\'t figure out how I\'m supposed to escape it.

I\'m exec

3条回答
  •  情深已故
    2021-01-13 14:06

    This works in Windows:

     
    curl -i -X POST -H "Content-Type: application/json" -d "{\"Field1\": 123, \"Field2\": 456 }" "http://localhost:8080"
     

提交回复
热议问题