windows系统,curl执行post命令

curl -H "Content-Type:application/json" -H "Accept:application/json" -X POST -d "{"current":1, "pageSize":50}" -v http://localhost:5000/api/ProdWarehouse/queryentity

 【注】

所以windows 中使用 curl 需要对参数字符串中的双引号进行转义。

原文地址:https://www.cnblogs.com/lishidefengchen/p/13294878.html