2
votes

I am new to JMeter and trying to send HTTP request and an email using JMeter and SMTP.

I am getting JMeter error as Non HTTP response code:

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

and SMTP error as 500/

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

HTTP Header Manager Screenshot

Registration API request screenshot

View Result Tree Screenshot

I have done the following settings:

user.properties:

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

hc.parameters :

http.connection.stalecheck$Boolean=true

These changes still didn't solve my problem. Can you please help that where should I have to change the setting to fix this.

1
Could you add an screenshot of your test plan and requests?Vadim Yangunaev
hi @VadimYangunaev i have attached the screenshot.Aman Kumar

1 Answers

0
votes

Check your connection settings, if you are testing from a proxy, you need to specify your proxy server host and port to JMeter.

Run the jmeter[.bat] file from a command line with the following parameters:

-H [proxy server hostname or ip address] -P [proxy server port] -N [nonproxy hosts] (e.g. *.apache.org|localhost) -u [username for proxy authentication - if required] -a [password for proxy authentication - if required]

Example:

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

Check this for more information:
JMeter proxy server