You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by bu...@apache.org on 2004/12/23 21:45:17 UTC
DO NOT REPLY [Bug 32807] -
CookiePolicy.BROWSER_COMPATIBILITY problems
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=32807>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=32807
olegk@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
------- Additional Comments From olegk@apache.org 2004-12-23 21:45 -------
One small piece of puzzle is missing. When using the browser compatibility
policy one _should_ also configure HttpClient to put all cookie into one
'Cookie' header.
httpclient.getParams().
setBooleanParameter(HttpMethodParams.SINGLE_COOKIE_HEADER, true);
This produces the desired results:
==================================
Policy: compatibility
==================================
URL: http://www.sgboards.com/forums/viewtopic.php?t=12&view=next&mforum=str
Response status code: 200
Present cookies:
ForumSetCookie=str
phpbb_str_data=a%3A0%3A%7B%7D
phpbb_str_sid=632e94f6ec8809b558812ed836c25e9e
URL: http://www.sgboards.com/forums/viewtopic.php?p=24&mforum=str
Response status code: 200
Present cookies:
phpbb_str_data=a%3A0%3A%7B%7D
phpbb_str_sid=632e94f6ec8809b558812ed836c25e9e
ForumSetCookie=str
URL: http://www.sgboards.com/forums/posting.php?mode=quote&p=24&mforum=str
Response status code: 200
Present cookies:
phpbb_str_data=a%3A0%3A%7B%7D
phpbb_str_sid=632e94f6ec8809b558812ed836c25e9e
ForumSetCookie=str
URL: http://www.sgboards.com/forums/viewtopic.php?p=25&mforum=str
Response status code: 200
Present cookies:
phpbb_str_data=a%3A0%3A%7B%7D
phpbb_str_sid=632e94f6ec8809b558812ed836c25e9e
ForumSetCookie=str
========================================
Oleg
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org