当前位置:网站首页>快速上手使用本地测试工具postman
快速上手使用本地测试工具postman
2022-07-07 22:00:00 【小智RE0】
首先下载postman工具 windows版下载地址
postman是一款网页调试与发送网页http请求的接口测试工具.
可选择使用客户端程序或者网页插件版本.

安装之后,简单看一下这个区域.
必要的条件:
- 请求地址url
- 请求协议:http,webservice
- 请求方式:get.post…
- 请求头
- 参数:表单/请求体提交数据
postman的大致工作流程

模拟文档案例说明:
1.手机归属地查询
- 接口地址:http://apis.juhe.cn/mobile/get
- 返回格式:json/xml
- 请求方式 get
- 请求示例:http://apis.juhe.cn/mobile/get?phone=123&key=申请的key

参数格式:
- 键值对: {“key”:"value,“name”:“xiaozhi”}
- xml:自定义的标签
- 文本格式
- html格式 :标签
get请求时,参数写在params中, post请求时,数据参数写入body中;
发送请求后在这里可看到响应的数据
可保存模拟响应的数据文件

注意,若在使用body模拟发送数据时,需要json/html…格式,先选择raw,然后再选定格式.
注意,form-data还可以放入文件进行测试


有的文件传输,也可以选择使用binary格式

边栏推荐
- Pigsty:开箱即用的数据库发行版
- P1308 [noip2011 popularity group] count the number of words
- Two small problems in creating user registration interface
- Redis caching tool class, worth owning~
- 35岁真就成了职业危机?不,我的技术在积累,我还越吃越香了
- Orthodontic precautions (continuously updated)
- How does starfish OS enable the value of SFO in the fourth phase of SFO destruction?
- 【编程题】【Scratch二级】2019.12 飞翔的小鸟
- Use filters to count URL request time
- BSS 7230 航空内饰材料阻燃性能测试
猜你喜欢

FFA and ICGA angiography

智慧监管入场,美团等互联网服务平台何去何从

用語雀寫文章了,功能真心强大!

数据湖(十五):Spark与Iceberg整合写操作

一鍵免費翻譯300多頁的pdf文檔

Fully automated processing of monthly card shortage data and output of card shortage personnel information

【编程题】【Scratch二级】2019.03 垃圾分类
![[programming problem] [scratch Level 2] December 2019 flying birds](/img/5e/a105f8615f3991635c9ffd3a8e5836.png)
[programming problem] [scratch Level 2] December 2019 flying birds

蓝桥ROS中使用fishros一键安装

35岁真就成了职业危机?不,我的技术在积累,我还越吃越香了
随机推荐
Pypharm uses, and the third-party library has errors due to version problems
MP4文件格式解析之结合实例分析
new和delete的底层原理以及模板
Orthodontic precautions (continuously updated)
Kubectl 好用的命令行工具:oh-my-zsh 技巧和窍门
Database interview questions + analysis
Chisel tutorial - 01 Introduction to Scala
某马旅游网站开发(对servlet的优化)
Handwriting a simulated reentrantlock
[path planning] use the vertical distance limit method and Bessel to optimize the path of a star
Trust orbtk development issues 2022
Stm32f1 and stm32cubeide programming example - rotary encoder drive
Codeworks 5 questions per day (average 1500) - day 8
SQL 使用in关键字查询多个字段
Daily question brushing record (16)
ROS从入门到精通(九) 可视化仿真初体验之TurtleBot3
Preliminary test of optical flow sensor: gl9306
Tools for debugging makefiles - tool for debugging makefiles
【编程题】【Scratch二级】2019.12 飞翔的小鸟
BSS 7230 flame retardant performance test of aviation interior materials