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 2006/01/22 01:49:21 UTC

DO NOT REPLY [Bug 38347] New: - Cookie date parsing problem

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=38347>.
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=38347

           Summary: Cookie date parsing problem
           Product: HttpClient
           Version: unspecified
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HttpClient
        AssignedTo: httpclient-dev@jakarta.apache.org
        ReportedBy: nathanegge@yahoo.com


I just wrote a program to use HttpClient to connect to craigslist.org and
received the following error.

Jan 21, 2006 7:44:55 PM org.apache.commons.httpclient.HttpMethodBase
processResponseHeaders
WARNING: Invalid cookie header:
"cl_login_cookie=uFXOcGRHZ3BK3BYbTiWxM8LEroqD1qEZ9HVxg8Rim2SzM8PpX60t1cTs8qanLhX5;
domain=.craigslist.org; path=/; expires=Tue, 01-Jan-1980 00:0 0:00 GMT". Unable
to parse expiration date parameter: Tue


I'm not sure, but it looks like they are sending back an extra space in their
expiry string.  I looked at how Firefox is handling this and it sets the expiry to:

Expires: at end of session

Can someone please tell me if there is a fix for this, or is craigslist just
being broken to try and prevent people from sripting it.  Maybe thats it, what
is the User-Agent reported by HttpClient?  I'm sure its possible to change it,
I'll try that.

Nathan

-- 
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


DO NOT REPLY [Bug 38347] - Cookie date parsing problem

Posted by bu...@apache.org.
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=38347>.
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=38347





------- Additional Comments From nathanegge@yahoo.com  2006-01-22 02:03 -------
I just tried running my program with the parameter:

"-Dhttpclient.useragent=Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
rv:1.7.7) Gecko/20050414 Firefox/1.0.3"

And it still gave me the same problem.  I think this is an actual error in your
date parsing scheme. I'm not sure why the space is there, but I think you should
try to handle it.

Thanks,

Nathan

-- 
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


DO NOT REPLY [Bug 38347] - Cookie date parsing problem

Posted by bu...@apache.org.
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=38347>.
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=38347





------- Additional Comments From http-async@dubioso.net  2006-01-22 10:34 -------
Hello Nathan,

we have a lot of cookie parsers too choose from. Why don't you try
the BROWSER_COMPATIBILITY one? The cookie header in your report does
have a comma in the expires attribute, which indicates a Netscape
cookie and is a well-known violation of the HTTP header spec.

http://jakarta.apache.org/commons/httpclient/cookies.html

cheers,
  Roland

-- 
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


DO NOT REPLY [Bug 38347] - Cookie date parsing problem

Posted by bu...@apache.org.
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=38347>.
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=38347


olegk@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




------- Additional Comments From olegk@apache.org  2006-01-22 13:24 -------
The cookie clearly violated RFC 2109 and is not compatible with the
BROWSER_COMPATIBILITY policy either (due to the frivolous use of comma in an
unquoted cookie attribute). This cookie can be accepted as a valid one by the
NETSCAPE policy only

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