我们在window中测试接口,通常使用postman,但是遇到一个问题,联调接口时,因为权限问题,只能在linux上测试接口是否开通。最后通过crul解决了这个问题。
1. post 访问 网址?name='张三'&password='123' header为content-type=application/x-www-form-urlencoded
curl -H 'content-type: application/x-www-form-urlencoded' -X POST -d "name=zhangsan&password=123" https://www.baidu.com
来源:CSDN
作者:guangyingposuo
链接:https://blog.csdn.net/guangyingposuo/article/details/103804459