百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
返回工具页/返回 Issues 列表
#730·oha

请告诉我如何使用代理身份验证?

作者: ndzuki创建于 2025年4月27日更新于 2025年9月6日

我想使用本地代理访问远程服务,但失败了,远程服务返回 407 Proxy Authorization Required。我使用了以下命令: `oha -n 100 --burst-delay 2s --burst-rate 10 -a "admin:123432" -x http://127.0.0.1:38520 "https://api.test.example.com"` oha --debug `Request { method: GET, uri: /geoip, version: HTTP/1.1, headers: { "accept": "*/*", "accept-encoding": "gzip, compress, deflate, br", "user-agent": "oha/1.8.0", "host": "api.ip.sb", "authorization": "Basic YWRtaW46MTIzNDMy", }, body: Full { data: None, } } Error: no upgrade available`

内容来源: hatoo/oha

查看 GitHub 原文在 GitHub 查看讨论