postman 发送 https 请求失败 Error: Protocol "https:" not supported. Expected "http:"

发布时间 2023-05-08 22:10:08作者: Lucky小黄人^_^

这两天使用 postman 发送请求时,发现发送 https 请求时会报错 Error: Protocol "https:" not supported. Expected "http:",提示我把 https 改成 http,改成 http 之后确实没问题了,可以正常发送请求。

但是原来能发 https 请求的,突然就不能发了,觉得很奇怪,所以搜索了一下,网上都说要关闭 postman 的 「SSL certificate verification」配置,但是我发现我的配置已经是关闭了的,后来发现需要打开这个配置才行。可能我的 postman 版本跟网上其他同学的不一样,所以解决方案不一样。我的 Postman 版本是

Version 10.7.3
UI Version: 10.7.3-ui-230112-1544
Desktop Platform Version: 10.7.0 (10.7.0)

解决方案

一次点击 Postman 功能栏的「Postman -> Preferences」,打开 SSL certificate verification 配置开关,没有保存按钮,修改配置后会自动保存。