安装 ApiPost- 接口工具 发送 HTTP 请求

安装 APIPOST
ApiPost 目前提供 Window64 位,Window32 位、Mac、Linux 版本的安装包下载。
进入 ApiPost 官网下载页,下载对应的版本,按照提示安装即可。
ApiPost 下载页:https://www.apipost.cn/download.html
提示:您也可以通过我们官方合作的软件平台进行下载,但由于软件更新时间差,建议在官网进行软件下载。
发送 HTTP 请求
API 界面功能布局

API 请求参数
Header 参数
你可以设置或者导入 Header 参数,cookie 也在 Header 进行设置

Query 参数
Query 支持构造 URL 参数,同时支持 RESTful 的 PATH 参数(如:id)

Body 参数
Body 提供三种类型 form-data / x-www-form-urlencoded / raw ,每种类型提供三种不同的 UI 界面
1)当你需要提交表单时,切换到 x-www-form-urlencoded

2)当你需要提交有文件的表单时,切换到 form-data

3)当您需要发送 JSON 对象或者其他对象时,切换到对应的 raw 类型即可

API 请求响应
点击发送按钮后,如果有数据返回,则会显示返回数据,响应时间,响应码,Cookie 等。

注意:返回数据默认是 Pretty 模式,便于查看 JSON XML 格式。您可以通过切换 原生 或 预览 模式 查看其它类型的类型。
返回 Headers

版权声明: 本文为 InfoQ 作者【CodeNongXiaoW】的原创文章。
原文链接:【http://xie.infoq.cn/article/1292485d43d7a0fca1500c7c2】。
本文遵守【CC BY-NC】协议,转载请保留原文出处及本版权声明。
评论