From: Bill Kelly Date: 2006-01-27T14:43:44+09:00 Subject: Re: CGI::Cookie.parse problem? [replying to my own post] > Looking at the RFC, http://www.faqs.org/rfcs/rfc2965.html > it *seems* to me the above raw_cookie data, conforms to the spec: > > Informally, the Set-Cookie2 response header comprises the token Set- > Cookie2:, followed by a comma-separated list of one or more cookies. > Each cookie begins with a NAME=VALUE pair, followed by zero or more > semi-colon-separated attribute-value pairs. > > Has anyone else run into this? I tried Perl's CGI cookie parsing and > it returned similarly garbled results for this set-cookie data. > > So I'm wondering if it's really a bug? Or if I'm somehow misusing > CGI::Cookie.parse() , sending it the wrong format data, or whatever. Ah... It seems the problem is I'm trying to parse server->client cookies, which are apparently of a different syntax than client->server cookies. I've written my own simplistic ServerCookie parser to meet my current needs. But, anyone know if a ServerCookie parser already exists for Ruby? Thanks, Bill