CURL 发送POST请求
curl -H “Content-Type: application/json” -X POST -d ‘{“user_id”: “123”, “coin”:100, “success”:1, “msg”:”OK!” }’ “http://192.168.0.1:8001/test“
curl -H “Content-Type: application/json;charset=utf-8” -X POST -d ‘{“limit”:0,”offset”:1}’ “http://10.94.22.12:12219/distributionbox/getDeviceInfoListForLink“
参数 内容
-H 请求头
-d POST内容
-X 请求协议
curl -H "Content-Type: application/json" -X POST -d '{"alarmBehavior":"8","alarmLevel":"1","alarmType":"1","createById":"5da96cb83af12f4441d1cd6f","createTime":"2019-12-05 14:33:00","delFlag":"0","equipmentType":"CircuitHI","id":"78a7a9e3-636b-11ea-a67f-00ff78d2aec3","isEnabled":"1","loopType":"0","objectTypeName":"高压进线回路","operator":"==","paramName":"进线分位","paramsType":"e37a005d6a4811eaa62a6c0b84d5a668","remark":"","thresholdValue":1,"updateById":"5c136d23f12c8769e327dc8","updateTime":"2019-12-05 14:33:00","memberId":null}' "http://127.0.0.1:12219/alarmSettingsGlobal/save"