abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r471052 - /incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/CommonsClient.java
Date Fri, 03 Nov 2006 23:35:06 GMT
Author: jmsnell
Date: Fri Nov  3 15:35:05 2006
New Revision: 471052

URL: http://svn.apache.org/viewvc?view=rev&rev=471052
Log:
Use the commons http client's browser compatibility mode for cookie handling.

Modified:
    incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/CommonsClient.java

Modified: incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/CommonsClient.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/CommonsClient.java?view=diff&rev=471052&r1=471051&r2=471052
==============================================================================
--- incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/CommonsClient.java
(original)
+++ incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/CommonsClient.java
Fri Nov  3 15:35:05 2006
@@ -34,6 +34,7 @@
 import org.apache.commons.httpclient.MultiThreadedHttpConnectionManager;
 import org.apache.commons.httpclient.auth.AuthPolicy;
 import org.apache.commons.httpclient.auth.AuthScope;
+import org.apache.commons.httpclient.cookie.CookiePolicy;
 import org.apache.commons.httpclient.methods.RequestEntity;
 import org.apache.commons.httpclient.params.HttpClientParams;
 
@@ -66,6 +67,8 @@
       userAgent);
     client.getParams().setBooleanParameter(
       HttpClientParams.USE_EXPECT_CONTINUE, true);  
+    client.getParams().setCookiePolicy(
+      CookiePolicy.BROWSER_COMPATIBILITY);
   }
   
   public void usePreemptiveAuthentication(boolean val) {



Mime
View raw message