You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Francois-Xavier Bonnet (JIRA)" <ji...@apache.org> on 2013/02/11 19:49:14 UTC

[jira] [Resolved] (HTTPCLIENT-1321) DefaultHttpClient ignores cookie policy

     [ https://issues.apache.org/jira/browse/HTTPCLIENT-1321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Francois-Xavier Bonnet resolved HTTPCLIENT-1321.
------------------------------------------------

    Resolution: Fixed

Fix committed to trunk
                
> 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