[
https://issues.apache.org/jira/browse/HTTPCLIENT-1321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Francois-Xavier Bonnet updated HTTPCLIENT-1321:
-----------------------------------------------
Attachment: hc-config.patch
Patch contributed by Oleg Kalnichevski
> 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: [email protected]
For additional commands, e-mail: [email protected]