📜  curl post json 文件 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:37.435000             🧑  作者: Mango

代码示例4
curl -H 'Content-Type: application/json' -H 'Accept: application/json' -X PUT -d '{"tags":["tag1","tag2"],"question":"Which band?","answers":[{"id":"a0","answer":"Answer1"},{"id":"a1","answer":"answer2"}]}' http://example.com/service`