Description
Kris Young (Bug 5136):
This is really version 1.7Beta.
The redirectUrl(HttpURLConnection, URL, UrlConfig) method is not redirecting
properly.
When performing a GET with params, the params are appended to the redirected
location URL.
i.e. If we have:
http://my.server.com/servlet/Login?username=user&password=psswd
The login servlet redirects to:
http://my.server.com/servlet/Welcome?name=YourName
In the JMeter framework the login servlet redirects to:
http://my.server.com/servlet/Welcome?name=YourName?username=user&password=psswd
In my local copy of 'HTTPSampler' I added at line #383:
URL newUrl = new URL(loc);
---> urlConfig.removeArguments();
urlConfig.putProperty(UrlConfig.DOMAIN, newUrl.getHost());
urlConfig.putProperty(UrlConfig.PATH, newUrl.getFile());
This did fix the problem but I'm not sure where else this is needed.
Votes in Bugzilla: 1
Severity: major
OS: All