svn commit: r904917 - /jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSampler2.java

[email protected]
Newsgroups gmane.comp.jakarta.jmeter.devel
Message-ID <[email protected]>
Author: sebb
Date: Sat Jan 30 23:35:12 2010
New Revision: 904917

URL: http://svn.apache.org/viewvc?rev=904917&view=rev
Log:
Better placement of save statement

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

Modified: jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSampler2.java
URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSampler2.java?rev=904917&r1=904916&r2=904917&view=diff
==============================================================================
--- jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSampler2.java (original)
+++ jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSampler2.java Sat Jan 30 23:35:12 2010
@@ -886,6 +886,8 @@
             setDefaultRequestHeaders(httpMethod);
             // Setup connection
             client = setupConnection(url, httpMethod, res);
+            savedClient = client;
+
             // Handle the various methods
             if (method.equals(POST)) {
                 String postBody = sendPostData((PostMethod)httpMethod);
@@ -895,8 +897,6 @@
                 res.setQueryString(putBody);
             }
 
-
-            savedClient = client;
             int statusCode = client.executeMethod(httpMethod);
 
             // Needs to be done after execute to pick up all the headers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.