DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=42156>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=42156 Summary: HTTPRequest HTTPClient incorrectly urlencodes parameter value in POST Product: JMeter Version: 2.2 Platform: Other OS/Version: other Status: NEW Severity: normal Priority: P2 Component: HTTP AssignedTo: [email protected] ReportedBy: [EMAIL PROTECTED] In the HTTP Request GUI, there is a checkbox for each parameter value, "Encode?". Even if this is unchecked, the HTTP Request using HTTP Client urlencodes the value when doing a HTTP POST request, which is incorrect. The reason is that the HTTPClient PostMethod class addParameter method, which is called in HTTPSampler2.java, assumes that the value is not alread URL encoded. So the HTTPClient PostMethod always urlencodes the parameter names and values before they are sent. So if you have a parameter named test, with value "%2Ftest%3D", and do a POST request, the POST body will contain "%252Ftest%253D", because the already urlencoded value is urlencoded once more. If you are using a HTTP Request (i.e the HTTPSampler.java), you will see that "%2Ftest%3D" is sent, because the getQueryString of HTTPSamplerBase takes into consideration the value of httpargument.isAlwaysEncoded(). -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
