![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
curl
wang_liuyong
沧海一粟
展开
-
curl的常用方法
https://blog.csdn.net/danchu/article/details/72290092#commentBox原创 2018-09-08 19:43:54 · 866 阅读 · 0 评论 -
curl test
约定接口一般包括以下数据 当前接口的路径是什么? 如 /auth/register 当前接口提交数据的类型是什么? 如 GET 获取数据 POST 提交或者创建 PATCH 修改数据,部分修改 DELETE 删除数据 PUT 修改数据,整体替换原有数据 参数类型/格式,比如是 json 格式,还是 application/x-www-form-urlencoded的数据 参数字段,及限制条件 返回...原创 2019-03-03 15:57:08 · 772 阅读 · 0 评论 -
测试接口的整个流程
1.注册 url -d "username=hunger1&password=123456" -X POST "http://localhost:3000/auth/register" 2.登录 curl -d "username=hunger1&password=123456" "http://localhost:3000/auth/login" -i -i 可以展示响应头,...原创 2019-03-03 16:49:12 · 1052 阅读 · 0 评论