Author: sebb
Date: Thu Oct 18 02:39:29 2007
New Revision: 585909

URL: http://svn.apache.org/viewvc?rev=585909&view=rev
Log:
PUT may not generate a body to send

Modified:
    
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/PostWriter.java

Modified: 
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/PostWriter.java
URL: 
http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/PostWriter.java?rev=585909&r1=585908&r2=585909&view=diff
==============================================================================
--- 
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/PostWriter.java
 (original)
+++ 
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/PostWriter.java
 Thu Oct 18 02:39:29 2007
@@ -135,7 +135,7 @@
                 // We just add placeholder text for file content
                 postedBody.append("<actual file content, not shown here>"); // 
$NON-NLS-1$
             }
-            else {            
+            else if (formDataUrlEncoded != null){ // may be null for PUT       
    
                 // In an application/x-www-form-urlencoded request, we only 
support
                 // parameters, no file upload is allowed
                 OutputStream out = connection.getOutputStream();



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to