Why do I get a malformed JSON in request body in this cURL call?

后端 未结 2 1314
滥情空心
滥情空心 2021-01-11 16:43

I have been trying to call the CloudFlare API v4, using an example provided in their own documentation.

This is the code of the example

curl -X PUT \         


        
2条回答
  •  忘掉有多难
    2021-01-11 17:22

    cmd.exe doesn't support single quotes, to run those commands straight from the docs you can use Bash.

    Bash can be enabled in Windows 10 : https://www.laptopmag.com/uk/articles/use-bash-shell-windows-10

    or Git Bash comes with Git for windows: https://gitforwindows.org/

提交回复
热议问题