You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by se...@apache.org on 2006/04/05 20:07:02 UTC
svn commit: r391693 -
/jakarta/jmeter/branches/rel-2-1/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSampler2.java
Author: sebb
Date: Wed Apr 5 11:07:00 2006
New Revision: 391693
URL: http://svn.apache.org/viewcvs?rev=391693&view=rev
Log:
NTCred domain cannot be null; try the empty string
Remove empty method and call
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=391693&r1=391692&r2=391693&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 Apr 5 11:07:00 2006
@@ -117,21 +117,6 @@
}
/**
- * Set request headers in preparation to opening a connection.
- *
- * @param conn
- * <code>URLConnection</code> to set headers on
- * @exception IOException
- * if an I/O exception occurs
- */
- private void setPostHeaders(PostMethod post) throws IOException {
- // Probably nothing needed, because the PostMethod class takes care of
- // it
- // /*postWriter.*/
- // setHeaders(post, this);
- }
-
- /**
* Send POST data from <code>Entry</code> to the open connection.
*
* @param connection
@@ -238,7 +223,7 @@
PROXY_USER,
PROXY_PASS,
null, // "thishost",
- null // domain
+ "" // domain
));
}
}
@@ -316,8 +301,7 @@
protected String getResponseHeaders(HttpMethod method) throws IOException {
StringBuffer headerBuf = new StringBuffer();
org.apache.commons.httpclient.Header rh[] = method.getResponseHeaders();
- headerBuf.append(method.getStatusLine());// header[0] is not the
- // status line...
+ headerBuf.append(method.getStatusLine());// header[0] is not the status line...
headerBuf.append("\n"); // $NON-NLS-1$
for (int i = 0; i < rh.length; i++) {
@@ -513,7 +497,6 @@
if (method.equals(POST)) {
res.setQueryString(getQueryString());
- setPostHeaders((PostMethod) httpMethod);
sendPostData(httpMethod);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org