curl demo

curl-XPOST-d"timestamp=1553169897099&phone=13500000000"http://xxx.xx.xxx.xxx:8903/verifiy/send

curl-XPOST--data'{"timestamp":"1553169897099","phone":"13500000000"}'http://xxx.xx.xxx.xxx:8903/verifiy/send

-d/--data

是直接写formdata,所以上面的{"timestamp":...},

其实是body={"timestamp":...},

而不是parameterMap后的phone=13500000000

再如:

-d'abcd'

则body=abcd

-d'a=1&b=2'

则body=a=1&b=2,即jsp解析参数后的parameterMap:a=1,b=2

curl-H'clienttype:ENTERPRISE_SERVICES'-H'Authorization:YnJlcmNqeGo4ZGVwYWR0NjhiOHd0NjBoZngwZmZhN2k='http://106.14.191.81/microservice/users/user/findUserInfoById/155290211279504511

相关推荐