From: Brian Candler Date: 2010-02-01T23:05:20+09:00 Subject: Re: cookiejar without cgi Thufir wrote: > Here's what I have: > > require 'rubygems' > require 'curb' > require 'cgi' > > cookie = CGI::Cookie.new > ("SID","domain=.google.com","path=/","expires=1600000000") > > puts cookie.inspect > puts cookie.to_s ... > How can I do that without cgi? By emitting a Set-Cookie: header directly? http://en.wikipedia.org/wiki/HTTP_cookie#Implementation You can always look at the source of CGI::Cookie to see what it does, and incorporate the bits you want. What's the reason for not using it? -- Posted via http://www.ruby-forum.com/.