Thanx for ur response; seems i am not clearly explaining u what i want; I am not interested in sending cookies to the browser/client; infact I am playing the role of a browser here and i want to talk to the server and in this situation i have to send (stored) cookies (at browser say) to the program@server This format or way of doing this is different from the way we play a server role and send cookies to the client ; its can be easily done using cgi.out Unfortunately the same way does not work out with httpObj.post And coming to http_access2 its all complex i am unable to understand Please help me.......... On Thu, 11 Nov 2004 16:34:40 +0900, Mark Hubbart <discordantus / gmail.com> wrote: > 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 > >