JMeter将响应消息作为“非HTTP响应代码:java.net.SocketException /非HTTP响应消息:连接重置”

问题描述 投票:2回答:1

我是JMeter的新手并尝试使用JMeter和SMTP发送HTTP请求和电子邮件。

我收到JMeter错误作为非HTTP响应代码:

java.net.SocketException/Non HTTP response message: Connection reset

和SMTP错误为500 /

Could not connect to SMTP host: smtp.1and1.com, port: 587

HTTP Header Manager Screenshot

Registration API request screenshot

View Result Tree Screenshot

我做了以下设置:

user.properties:

httpclient4.retrycount=1
hc.parameters.file=hc.parameters

hc.parameters:

http.connection.stalecheck$Boolean=true

这些变化仍然没有解决我的问题。你能帮忙,我应该在哪里更改设置来解决这个问题。

http jmeter http-post
1个回答
0
投票

检查连接设置,如果要从代理进行测试,则需要将代理服务器主机和端口指定给JMeter。

使用以下参数从命令行运行jmeter[.bat]文件:

-H [代理服务器主机名或IP地址] -P [代理服务器端口] -N [非代理主机](例如* .apache.org | localhost)-u [代理身份验证的用户名 - 如果需要] -a [代理密码验证 - 如果需要]

例:

jmeter -H my.proxy.server -P 8000 -u username -a password -N localhost

检查这个以获取更多信息: JMeter proxy server

© www.soinside.com 2019 - 2024. All rights reserved.