hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r165654 - /jakarta/httpclient/trunk/http-common/src/examples/org/apache/http/examples/ElementalHttpGet.java /jakarta/httpclient/trunk/http-common/src/examples/org/apache/http/examples/ElementalHttpPost.java
Date Mon, 02 May 2005 17:59:13 GMT
Author: olegk
Date: Mon May  2 10:59:12 2005
New Revision: 165654

URL: http://svn.apache.org/viewcvs?rev=165654&view=rev
Log:
Fixed incorrect user agent header name

Modified:
    jakarta/httpclient/trunk/http-common/src/examples/org/apache/http/examples/ElementalHttpGet.java
    jakarta/httpclient/trunk/http-common/src/examples/org/apache/http/examples/ElementalHttpPost.java

Modified: jakarta/httpclient/trunk/http-common/src/examples/org/apache/http/examples/ElementalHttpGet.java
URL: http://svn.apache.org/viewcvs/jakarta/httpclient/trunk/http-common/src/examples/org/apache/http/examples/ElementalHttpGet.java?rev=165654&r1=165653&r2=165654&view=diff
==============================================================================
--- jakarta/httpclient/trunk/http-common/src/examples/org/apache/http/examples/ElementalHttpGet.java
(original)
+++ jakarta/httpclient/trunk/http-common/src/examples/org/apache/http/examples/ElementalHttpGet.java
Mon May  2 10:59:12 2005
@@ -63,7 +63,7 @@
             for (int i = 0; i < targets.length; i++) {
                 HttpGetRequest request = new HttpGetRequest(targets[i]);
                 request.setHeader(new Header("Host", host.toHostString()));
-                request.setHeader(new Header("Agent", "Elemental HTTP client"));
+                request.setHeader(new Header("User-Agent", "Elemental HTTP client"));
                 request.setHeader(new Header("Connection", "Keep-Alive"));
                 if (!conn.isOpen()) {
                     System.out.println("Open new connection to: " + host);

Modified: jakarta/httpclient/trunk/http-common/src/examples/org/apache/http/examples/ElementalHttpPost.java
URL: http://svn.apache.org/viewcvs/jakarta/httpclient/trunk/http-common/src/examples/org/apache/http/examples/ElementalHttpPost.java?rev=165654&r1=165653&r2=165654&view=diff
==============================================================================
--- jakarta/httpclient/trunk/http-common/src/examples/org/apache/http/examples/ElementalHttpPost.java
(original)
+++ jakarta/httpclient/trunk/http-common/src/examples/org/apache/http/examples/ElementalHttpPost.java
Mon May  2 10:59:12 2005
@@ -75,7 +75,7 @@
             for (int i = 0; i < requestBodies.length; i++) {
                 HttpPostRequest request = new HttpPostRequest("/httpclienttest/body");
                 request.setHeader(new Header("Host", host.toHostString()));
-                request.setHeader(new Header("Agent", "Elemental HTTP client"));
+                request.setHeader(new Header("User-Agent", "Elemental HTTP client"));
                 request.setHeader(new Header("Connection", "Keep-Alive"));
                 
                 HttpEntity requestbody = requestBodies[i];



Mime
View raw message