You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by Ross Rankin <ro...@bellsouth.net> on 2003/02/26 18:58:42 UTC

Cookie issues...

I am running the alpha 3 version of the client and I am see some odd
differences between what I see using OpenSTA and tracing a connection and
getting cookies and then what happens on my HTTPClient connection.  
It seems to revolve around cookies with multiple crumbs in the same cookie
name.  For example:
The cookie is the following:

	CLIENT=sid=9964612&cid=469406&uid=1216042; path=/; expires=Friday,
1-Sep-2000 00:00:00 GMT; domain=.website.com

But when I do a write out the response headers I get this:

Wed Feb 26 12:43:13 EST 2003,Set-Cookie: CLIENT=; path=/; expires=Friday,
1-Sep-2000 00:00:00 GMT; domain=.website.com

Wed Feb 26 12:43:13 EST 2003,Set-Cookie: CLIENT=; path=/; expires=Friday,
1-Sep-2000 00:00:00 GMT;

Wed Feb 26 12:43:13 EST 2003,Set-Cookie: client=; path=/; expires=Friday,
1-Sep-2000 00:00:00 GMT; domain=.website.com

Wed Feb 26 12:43:13 EST 2003,Set-Cookie: client=; path=/; expires=Friday,
1-Sep-2000 00:00:00 GMT;

I even tried an add cookie with the above information and the information
remains the same.  Any ideas on what I am doing wrong or if the cookie is
the problem or what?  This site will not let me login without the CLIENT
cookie.  Anything I can do to get around it?


Ross Rankin
ross_r@bellsouth.net




RE: Cookie issues...

Posted by Ross Rankin <ro...@bellsouth.net>.
Here's the log...  

I noticed three things, one: cookies are being rejected due to a leading .
in the domain name,  two: there is a CLIENT=null in there, three: there is a
follow redirect is disable when I have enabled it in both the posts and
gets.  

Ross

-----Original Message-----
From: Oleg Kalnichevski [mailto:o.kalnichevski@dplanet.ch] 
Sent: Wednesday, February 26, 2003 1:37 PM
To: Commons HttpClient Project
Subject: Re: Cookie issues...

Ross
I think I'll be able to help you out. I just need more detailed
information on what is going on inside HttpClient. Could you please
execute your application with the following system settings and send me
back the resulting debug trace

-Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog
-Dorg.apache.commons.logging.simplelog.log.httpclient.wire=debug 
-Dorg.apache.commons.logging.simplelog.log.org.apache.commons.httpclient=deb
ug

Cheers

Oleg

On Wed, 2003-02-26 at 18:58, Ross Rankin wrote:
> I am running the alpha 3 version of the client and I am see some odd
> differences between what I see using OpenSTA and tracing a connection and
> getting cookies and then what happens on my HTTPClient connection.  
> It seems to revolve around cookies with multiple crumbs in the same cookie
> name.  For example:
> The cookie is the following:
> 
> 	CLIENT=sid=9964612&cid=469406&uid=1216042; path=/; expires=Friday,
> 1-Sep-2000 00:00:00 GMT; domain=.website.com
> 
> But when I do a write out the response headers I get this:
> 
> Wed Feb 26 12:43:13 EST 2003,Set-Cookie: CLIENT=; path=/; expires=Friday,
> 1-Sep-2000 00:00:00 GMT; domain=.website.com
> 
> Wed Feb 26 12:43:13 EST 2003,Set-Cookie: CLIENT=; path=/; expires=Friday,
> 1-Sep-2000 00:00:00 GMT;
> 
> Wed Feb 26 12:43:13 EST 2003,Set-Cookie: client=; path=/; expires=Friday,
> 1-Sep-2000 00:00:00 GMT; domain=.website.com
> 
> Wed Feb 26 12:43:13 EST 2003,Set-Cookie: client=; path=/; expires=Friday,
> 1-Sep-2000 00:00:00 GMT;
> 
> I even tried an add cookie with the above information and the information
> remains the same.  Any ideas on what I am doing wrong or if the cookie is
> the problem or what?  This site will not let me login without the CLIENT
> cookie.  Anything I can do to get around it?
> 
> 
> Ross Rankin
> ross_r@bellsouth.net
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
commons-httpclient-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
commons-httpclient-dev-help@jakarta.apache.org
> 


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

Re: Cookie issues...

Posted by Oleg Kalnichevski <o....@dplanet.ch>.
Ross
I think I'll be able to help you out. I just need more detailed
information on what is going on inside HttpClient. Could you please
execute your application with the following system settings and send me
back the resulting debug trace

-Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog
-Dorg.apache.commons.logging.simplelog.log.httpclient.wire=debug 
-Dorg.apache.commons.logging.simplelog.log.org.apache.commons.httpclient=debug

Cheers

Oleg

On Wed, 2003-02-26 at 18:58, Ross Rankin wrote:
> I am running the alpha 3 version of the client and I am see some odd
> differences between what I see using OpenSTA and tracing a connection and
> getting cookies and then what happens on my HTTPClient connection.  
> It seems to revolve around cookies with multiple crumbs in the same cookie
> name.  For example:
> The cookie is the following:
> 
> 	CLIENT=sid=9964612&cid=469406&uid=1216042; path=/; expires=Friday,
> 1-Sep-2000 00:00:00 GMT; domain=.website.com
> 
> But when I do a write out the response headers I get this:
> 
> Wed Feb 26 12:43:13 EST 2003,Set-Cookie: CLIENT=; path=/; expires=Friday,
> 1-Sep-2000 00:00:00 GMT; domain=.website.com
> 
> Wed Feb 26 12:43:13 EST 2003,Set-Cookie: CLIENT=; path=/; expires=Friday,
> 1-Sep-2000 00:00:00 GMT;
> 
> Wed Feb 26 12:43:13 EST 2003,Set-Cookie: client=; path=/; expires=Friday,
> 1-Sep-2000 00:00:00 GMT; domain=.website.com
> 
> Wed Feb 26 12:43:13 EST 2003,Set-Cookie: client=; path=/; expires=Friday,
> 1-Sep-2000 00:00:00 GMT;
> 
> I even tried an add cookie with the above information and the information
> remains the same.  Any ideas on what I am doing wrong or if the cookie is
> the problem or what?  This site will not let me login without the CLIENT
> cookie.  Anything I can do to get around it?
> 
> 
> Ross Rankin
> ross_r@bellsouth.net
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org
>