Postman http/https测试工具

发布时间:2020-06-15 07:18:04 作者:fengyuzaitu
来源:网络 阅读:1141

restful接口的几点说明
    1)url后面添加参数,可以直接通过&符号链接起来
例如:http://192.168.18.84/axis-cgi/com/ptz.cgi?camera=1&query=position
也可以通过Params的键值对进行填充


    2)认证可以通过Authorization进行添加,根据适当的Type类型进行选择,也可以通过Header进行认证换算后填充,例如
Authorization: cm9vdDpyb290


    3)Postman指定了Connection: keep-alive属性,因此需要服务器端主动断开链接,否则会出现如下的问题: 一直提示Canceling Request,即使是收到了回复


    4)使用https进行请求的时候,如果返回异常,如下:
Could not get any response
There was an error connecting to https://192.168.58.42:8080/cs/restfull/operationRestfullApi/excuteSqlByCode.
Why this might have happened:
The server couldn't send a response:
Ensure that the backend is working properly
Self-signed SSL certificates are being blocked:
Fix this by turning off 'SSL certificate verification' in Settings > General
Proxy configured incorrectly
Ensure that proxy is configured correctly in Settings > Proxy
Request timeout:
Change request timeout in Settings > General
解决方案: 打开settings界面,找到General界面,然后关闭SSL certificate verification即可,是不需要认证证书

推荐阅读:
  1. 如何用Postman做接口自动化测试
  2. Postman实现参数化执行及断言处理的方法

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

postman 工具使用 st

上一篇:第一次部署成功双网卡绑定

下一篇:percona-toolkit 使用汇总

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》