jmeter java.io.IOException

时间:2017-04-07 09:39:48

标签: jmeter ioexception

我在浏览器上触发了https URL,在jmeter中也是如此。我想运行一些URL的jümeter,但是当我运行时,我发现了一些差异。 Broswer结果 -

Request URL:https://testurl.com
Request Method:GET
Status Code:302 Found

关于触发URL,在浏览器中,我获得登录屏幕,但是当我通过jmeter触发相同的URL时,它给出例外如下 -

Response code: Non HTTP response code: java.io.IOException
Response message: Non HTTP response message: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 503 Service Unavailable"

1 个答案:

答案 0 :(得分:0)

当您定位的网站落后于HA-Proxy或NGinx等负载均衡器时,通常会发生这种情况。这些负载均衡器使用Host Http头来知道必须将请求重定向到哪个后端。

在您的http请求中添加Http Header Manager,将“Host:testurl.com”标题添加到您的http请求中。我强烈建议您记录浏览器流量以捕获浏览器发送到远程服务器的标头。