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/11/04 02:54:48 UTC
DO NOT REPLY [Bug 32050] New: -
Cookies are sent in separate headers
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=32050>.
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=32050
Cookies are sent in separate headers
Summary: Cookies are sent in separate headers
Product: HttpClient
Version: 3.0 Alpha 2
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: Other
Component: Commons HttpClient
AssignedTo: httpclient-dev@jakarta.apache.org
ReportedBy: clergue@unice.fr
Hi,
it seems that cookies are sent in separate Cookie request headers, while they
belong to the same domain, and have the same path :
2004/11/04 02:07:32:588 CET [DEBUG] DefaultHttpParams - Set parameter
http.method.retry-handler =
org.apache.commons.httpclient.DefaultHttpMethodRetryHandler@13c1b02
2004/11/04 02:07:32:590 CET [DEBUG] DefaultHttpParams - Set parameter
http.protocol.cookie-policy = compatibility
2004/11/04 02:07:32:632 CET [DEBUG] header - >> "GET XXXX HTTP/1.1[\r][\n]"
2004/11/04 02:07:32:632 CET [DEBUG] HttpMethodBase - Adding Host request header
2004/11/04 02:07:32:634 CET [DEBUG] header - >> "User-Agent: Jakarta
Commons-HttpClient/3.0-alpha2[\r][\n]"
2004/11/04 02:07:32:634 CET [DEBUG] header - >> "Host: YYYY[\r][\n]"
2004/11/04 02:07:32:634 CET [DEBUG] header - >> "Cookie: person=ZZZ[\r][\n]"
2004/11/04 02:07:32:635 CET [DEBUG] header - >> "Cookie: PHPSESSID=ZZZ[\r][\n]"
2004/11/04 02:07:32:639 CET [DEBUG] header - >> "[\r][\n]"
2004/11/04 02:07:32:687 CET [DEBUG] header - << "HTTP/1.1 302 Found[\r][\n]"
2004/11/04 02:07:32:697 CET [DEBUG] header - << "Date: Thu, 04 Nov 2004 01:06:57
GMT[\r][\n]"
2004/11/04 02:07:32:698 CET [DEBUG] header - << "Server: Apache/1.3.29 (Unix)
(Red-Hat/Linux) mod_jk/1.2.0 mod_ssl/2.8.16 OpenSSL/0.9.6l PHP/4.2.2[\r][\n]"
2004/11/04 02:07:32:698 CET [DEBUG] header - << "X-Powered-By: PHP/4.2.2[\r][\n]"
2004/11/04 02:07:32:700 CET [DEBUG] header - << "Expires: Thu, 19 Nov 1981
08:52:00 GMT[\r][\n]"
2004/11/04 02:07:32:700 CET [DEBUG] header - << "Last-Modified: Thu, 04 Nov 2004
01:06:57 GMT[\r][\n]"
2004/11/04 02:07:32:701 CET [DEBUG] header - << "Cache-Control: no-store,
no-cache, must-revalidate, post-check=0, pre-check=0[\r][\n]"
2004/11/04 02:07:32:701 CET [DEBUG] header - << "Pragma: no-cache[\r][\n]"
2004/11/04 02:07:32:702 CET [DEBUG] header - << "Set-Cookie: PHPSESSID=WWW;
path=/[\r][\n]"
2004/11/04 02:07:32:702 CET [DEBUG] header - << "Location: http://AAAA[\r][\n]"
2004/11/04 02:07:32:702 CET [DEBUG] header - << "Connection: close[\r][\n]"
2004/11/04 02:07:32:702 CET [DEBUG] header - << "Transfer-Encoding: chunked[\r][\n]"
2004/11/04 02:07:32:703 CET [DEBUG] header - << "Content-Type: text/html[\r][\n]"
I though that cookie specs require that they have to be send in the same header.
Manu.
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org