我正在尝试从免费的虚拟主机文本文件中运行一个集合,我可以通过以下方式轻松运行它:
newman run %https://mysite.txt%
现在我试图在本地捕获从 newman run 发送的请求,所以我在 CMD 中添加了这个命令:
set HTTP_PROXY=127.0.0.1:62248
这应该允许我的应用程序在使用它时记录来自 Newman 的请求:
newman run %https://mysite.txt% --env-var HTTP_PROXY --insecure
(它适用于本地托管文件)但是由于 txt 文件由 https 协议托管,我收到以下错误:
error: collection could not be loaded
unable to fetch data from url "https://mysite.txt"
tunneling socket could not be established, cause=getaddrinfo ENOTFOUND 62248
我可以在本地录制时从安全的 https 网址运行 Newman 集合,还是应该先在本地下载并保存,然后在本地运行?