2

I have fired https URL on browser and same in jmeter. I want to run few URL's thorugh jmeter but found some difference when i run thorugh jmeter. Broswer result-

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

on firing URL, in browser, i get login screen but when i fire same URL through jmeter, its giving exception as below-

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"
Shiva
  • 6,677
  • 4
  • 36
  • 61
Nisha
  • 65
  • 5
  • 11
  • 1
    The error is the same as https://stackoverflow.com/q/42904148 which is not answered yet. – Beck Yang Apr 07 '17 at 09:55
  • It can also be a proxy configuration issue, like proxy settings properly set in browser but not in jmeter. – Jerome L Apr 07 '17 at 14:54
  • Are you entering any username or password while logging manually? If not, the application authorizes you using NTLM. You need to add HTTP Authorization Manager to your test plan. If you facing any issues, you need to install the security certificate in bin folder. https://www.blazemeter.com/blog/how-set-your-jmeter-load-test-use-client-side-certificates – NaveenKumar Namachivayam Apr 08 '17 at 01:51

1 Answers1

0

This usually happens when the website you target is behind a load-balancer like HA-Proxy or NGinx. Those load balancers use the Host Http header to know to which backend the request must be redirected.

Add the "Host: testurl.com" header to your http request by putting an Http Header Manager underneath. I strongly suggest you to record your browser traffic to capture the headers the browser is sending to the remote server.

Jerome L
  • 607
  • 5
  • 11