我想用黄瓜测试的主机在代理后面。使用标准连接,例如 Webrat::Session.new 不起作用,因为中间的代理忽略了我的主机头。我需要在 Cucumber 中建立一个类似于此 curl 命令的连接:
curl http://www.whatever-test.com/index.html -H "host: www.whatever.com" --socks5 proxy.tunnel.com:333
我想用黄瓜测试的主机在代理后面。使用标准连接,例如 Webrat::Session.new 不起作用,因为中间的代理忽略了我的主机头。我需要在 Cucumber 中建立一个类似于此 curl 命令的连接:
curl http://www.whatever-test.com/index.html -H "host: www.whatever.com" --socks5 proxy.tunnel.com:333