(例としてを使用して)curlコマンドは次のとおりです。
$ curl -X POST -d "{'groupsEnabled':['info']}" -H "Content-Type: application/json" http://httpbin.org/post
ディスプレイ要求:
{
"args": {},
"data": "{'groupsEnabled':['info']}",
"files": {},
"form": {},
"headers": {
"Accept": "*/*",
"Content-Length": "26",
"Content-Type": "application/json",
"Host": "httpbin.org",
"User-Agent": "curl/7.49.0"
},
"json": null,
"origin": "xxx.xxx.xxx.xxx",
"url": "http://httpbin.org/post"
}
にご興味を一部さ
"data": "{'groupsEnabled':['info']}",
あなたの場合二重引用符を使用したい場合は一重引用符ではなく、お使いのOSに