hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Francois-Xavier Bonnet (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HTTPCLIENT-1321) DefaultHttpClient ignores cookie policy
Date Mon, 11 Feb 2013 18:35:13 GMT
Francois-Xavier Bonnet created HTTPCLIENT-1321:

             Summary: DefaultHttpClient ignores cookie policy
                 Key: HTTPCLIENT-1321
                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1321
             Project: HttpComponents HttpClient
          Issue Type: Bug
          Components: HttpClient
    Affects Versions: 4.3 Alpha1
            Reporter: Francois-Xavier Bonnet
            Priority: Minor
             Fix For: 4.3 Alpha2
         Attachments: hc-config.patch

DefaultHttpClient does not use anymore param ClientPNames.COOKIE_POLICY
HttpParams is now deprecated but current code should be compatible.
With a HttpClient built using HttpClientBuilder, everything works fine.

Here is a sample code that worked in 4.2.3. It is supposed to use BrowserCompatSpec but uses
BestMatchSpec instead:

HttpClient httpClient = new DefaultHttpClient();
HttpUriRequest request = new HttpGet("http://localhost:8080/");
request.getParams().setParameter(ClientPNames.COOKIE_POLICY, CookiePolicy.BROWSER_COMPATIBILITY);
HttpResponse response = httpClient.execute(request);

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org

View raw message