Author: sebb
Date: Wed Jan 11 18:36:02 2006
New Revision: 368237
URL: http://svn.apache.org/viewcvs?rev=368237&view=rev
Log:
Fixes for httpclient 3.0
Modified:
jakarta/jmeter/branches/rel-2-1/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSampler2.java
Modified:
jakarta/jmeter/branches/rel-2-1/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSampler2.java
URL:
http://svn.apache.org/viewcvs/jakarta/jmeter/branches/rel-2-1/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSampler2.java?rev=368237&r1=368236&r2=368237&view=diff
==============================================================================
---
jakarta/jmeter/branches/rel-2-1/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSampler2.java
(original)
+++
jakarta/jmeter/branches/rel-2-1/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSampler2.java
Wed Jan 11 18:36:02 2006
@@ -15,7 +15,6 @@
*/
package org.apache.jmeter.protocol.http.sampler;
-import java.io.BufferedInputStream;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStream;
@@ -30,7 +29,8 @@
import java.util.zip.GZIPInputStream;
import org.apache.commons.httpclient.ConnectMethod;
-import org.apache.commons.httpclient.DefaultMethodRetryHandler;
+import org.apache.commons.httpclient.DefaultHttpMethodRetryHandler;
+
import org.apache.commons.httpclient.HostConfiguration;
import org.apache.commons.httpclient.HttpConnection;
import org.apache.commons.httpclient.HttpMethod;
@@ -210,7 +210,7 @@
String urlStr = u.toString();
- org.apache.commons.httpclient.URI uri = new
org.apache.commons.httpclient.URI(urlStr);
+ org.apache.commons.httpclient.URI uri = new
org.apache.commons.httpclient.URI(urlStr,false);
String schema = uri.getScheme();
if ((schema == null) || (schema.length()==0)) {
@@ -246,7 +246,7 @@
} else {
httpMethod = new GetMethod(urlStr);
// httpMethod;
- new DefaultMethodRetryHandler();//TODO what is this
doing??
+ new DefaultHttpMethodRetryHandler();//TODO what is this
doing??
}
httpMethod.setHttp11(!JMeterUtils.getPropDefault("httpclient.version",
"1.1").equals("1.0")); // $NON-NLS-1$ // $NON-NLS-2$ // $NON-NLS-3$
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]