Linux 下使用 curl 发送 post 请求
程序员文章站
2022-04-20 09:24:47
```
curl -i -X POST -H 'Content-type':'application/json' -d '{"keyWord":"雅诗兰黛","page":1,"pageSize":12,"sortFieldList":["isCombo|desc"]}' http://127.0.... ......
curl -i -X POST -H 'Content-type':'application/json' -d '{"keyWord":"雅诗兰黛","page":1,"pageSize":12,"sortFieldList":["isCombo|desc"]}' http://127.0.0.1:8015/search/prod/query # 注意的是,json数据里变量要用 '' 括起来