On Thu, 11 Nov 2004 13:52:51 +0900, Daun Jaun <compsci.isi / gmail.com> wrote:
> What if i want to send cookies;
> should i place it in headers if so how should i format the cookies ..,
> its where my problem exactly is
> COOKIES..?

Google is your friend :) Googling 'cookie header' gives us:
http://wp.netscape.com/newsref/std/cookie_spec.html

the format for the header is:

Set-Cookie: NAME=VALUE; expires=DATE;
path=PATH; domain=DOMAIN_NAME; secure

So the header hash might look something like this:

cookie = "NAME=foo;expires=Wdy, DD-Mon-YYYY HH:MM:SS GMT;"+
  "domain=example.com;path=/foo/bar;"
{"Set-Cookie" => cookie}

cheers,
Mark