用ApiPost发送JSON格式的POST请求示例

4次阅读

共计 230 个字符,预计需要花费 1 分钟才能阅读完成。

ApiPost 是一个很好的 http 模拟器,在测试 rest 服务时是很好用的工具,可以发送 get、post、put 等各种请求。相对来说,比老外的 postman 好用多了。

在地址栏里输入请求 url:[http://echo.apipost.cn/get.php](http://echo.apipost.cn/get.php)

选择“POST”方式,

点击 ”body”, 并选择请求方式为 application/json

添加:

{"userid": 1}

点击 send 发送即可。

正文完
 0