DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9372>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9372 jmeter17b3 does HTTP-POST instead of HTTP-GET on 3xx redirect Codes Summary: jmeter17b3 does HTTP-POST instead of HTTP-GET on 3xx redirect Codes Product: JMeter Version: unspecified Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: Main AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Dears, On my Server-Code I produce occasionally some HTTP Response Codes 302, (I do some ticketing). Netscape and MSIE behave always like this: -The redirected request is always HTTP-GET and the redirected URL however if the initial request was a HTTP-POST jmeter behaves different as the standard browsers: -The redirected request is HTTP-POST if the initial request also was HTTP-POST this confuses my server-code. I thought of doing some workarounds in the server code, but decided better to fix it in jmeter. I located the class where the fix could be done, did it, tested it and it runs fine ! BTW, you did a great work thank you!! here is the place: org/apache/jmeter/protocol/http/sampler/HTTPSampler.java private void redirectUrl(HttpURLConnection conn, URL u, UrlConfig urlConfig) throws MalformedURLException { ... urlConfig.putProperty(UrlConfig.PATH, newUrl.getFile()); urlConfig.putProperty(UrlConfig.ARGUMENTS,new Arguments()); //here comes my fix just one line urlConfig.putProperty(UrlConfig.METHOD, UrlConfig.GET); //here ends my fix it was just one line } -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
