You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jakarta.apache.org by se...@apache.org on 2010/11/19 02:32:31 UTC
svn commit: r1036704 -
/jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/HttpRequestHdr.java
Author: sebb
Date: Fri Nov 19 01:32:31 2010
New Revision: 1036704
URL: http://svn.apache.org/viewvc?rev=1036704&view=rev
Log:
Fix PUT proxy handling
Modified:
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/HttpRequestHdr.java
Modified: jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/HttpRequestHdr.java
URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/HttpRequestHdr.java?rev=1036704&r1=1036703&r2=1036704&view=diff
==============================================================================
--- jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/HttpRequestHdr.java (original)
+++ jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/HttpRequestHdr.java Fri Nov 19 01:32:31 2010
@@ -438,11 +438,9 @@ public class HttpRequestHdr {
sampler.setArguments(urlConfig.getArguments());
// Set the file uploads
sampler.setHTTPFiles(urlConfig.getHTTPFileArgs().asArray());
- } else if (postData.trim().startsWith("<?")) {
- // Not sure if this is needed anymore. I assume these requests
- // do not have HTTPConstants.APPLICATION_X_WWW_FORM_URLENCODED as content type,
- // and they would therefore be catched by the last else if of these if else if tests
- sampler.addNonEncodedArgument("", postData, ""); //used when postData is pure xml (ex. an xml-rpc call)
+ // used when postData is pure xml (eg. an xml-rpc call) or for PUT
+ } else if (postData.trim().startsWith("<?") || "PUT".equals(sampler.getMethod()) {
+ sampler.addNonEncodedArgument("", postData, "");
} else if (contentType == null || contentType.startsWith(HTTPConstants.APPLICATION_X_WWW_FORM_URLENCODED) ){
// It is the most common post request, with parameter name and values
// We also assume this if no content type is present, to be most backwards compatible,
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@jakarta.apache.org
For additional commands, e-mail: notifications-help@jakarta.apache.org