hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kalnichevski, Oleg" <oleg.kalnichev...@bearingpoint.com>
Subject RE: Empty cookie problem
Date Fri, 07 Mar 2003 08:39:03 GMT
This is clearly a bug. I will be working on a fix shortly. Thanks for tracking it down

-----Original Message-----
From: Tom Samplonius [mailto:tom@sdf.com]
Sent: Freitag, 7. März 2003 00:11
To: Commons HttpClient Project
Subject: Empty cookie problem

  I have a server that sets a bunch of empty cookies:

2003/03/06 16:28:52:055 PST [DEBUG] wire - -<< "Set-Cookie: list%2ESince=; path=/[\r][\n]"
2003/03/06 16:28:52:055 PST [DEBUG] wire - -<< "Set-Cookie: search%2EPhoneSDA=; path=/[\r][\n]"

  On subsequent requests, httpclient attaches these cookies thusly:

2003/03/06 16:28:55:480 PST [DEBUG] wire - ->> "Cookie: $Version=0; list%2ESince=null;
2003/03/06 16:28:55:480 PST [DEBUG] wire - ->> "Cookie: $Version=0; search%2EPhoneSDA=null;

  I'm not sure how to read this portion of wirelog, but seems that actual
values containing the string "null" are being sent as part of the request.
In the response to my request, the server now echos cookies with "null"
values back to me.

2003/03/06 16:28:55:660 PST [DEBUG] wire - -<< "Set-Cookie: search%2EPhoneSDA=null;
2003/03/06 16:28:55:660 PST [DEBUG] wire - -<< "Set-Cookie: list%2ESince=null; path=/[\r][\n]"

  This isn't good.  Basically, the list.Since= cookie is being
converted to list.Since=null.  This causes the server's script to

<p>Microsoft VBScript runtime </font> <font face="Arial" size=2>error '800a000d'</font>
<font face="Arial" size=2>Type mismatch: 'CINT'</font>
<font face="Arial" size=2>/listCust.asp</font><font face="Arial" size=2>,
line 283</font> 

  I guess the script tries to assign the string "null" to an integer, and


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

View raw message