是否可以为代理( https://www.rfc-editor.org/rfc/rfc7231#page-30 )使用locust创建以下消息:
CONNECT server.example.com:80 HTTP/1.1
Host: server.example.com:80
Proxy-Authorization: basic aGVsbG86d29ybGQ=现在,蝗虫生成以下代码:
GET server.example.com:80 HTTP/1.1
Host: server.example.com:80
Proxy-Authorization: basic aGVsbG86d29ybGQ=我的代理服务器不能使用最后一个代理服务器,并且连接到端点http-server是不可能的。
启用locust的代理用法很容易,但它使用的协议缺少CONNECT
发布于 2020-07-31 16:29:52
默认情况下,Locust会忽略代理设置,但您可以通过设置
self.client.trust_env = True(然后你只需要提出你通常会做的任何请求)
请参阅https://docs.locust.io/en/stable/writing-a-locustfile.html?highlight=proxy#http-proxy-settings
https://stackoverflow.com/questions/63174833
复制相似问题