[REBOL] R: Re: Reading and setting cookies
From: gchillemi:aliceposta:it at: 20-Nov-2005 13:35
I am on the client side of the thing.
I want to access pages located in a remote server and I need to
accept a cookie and make a login. I am taking a look at http-tools.r but it
does not set the data as promised: http-tools-data/cookie-data is empty.
Da: rebol-bounce-rebol.com [mailto:rebol-bounce-rebol.com] Per conto di
Inviato: domenica 20 novembre 2005 11.13
Oggetto: [REBOL] Re: Reading and setting cookies
> I need to read and set cookies when accessing pages. How can I do this
Setting a cookie is as simple as printing the right HTTP header:
print "set-cookie: ....."
Reading the cookie means looking in a CGI header
cookie-value: select system/options/cgi/other-headers "HTTP_COOKIE"
[It's slightly more complicated if you want to use multiple cookies of type
for any one visitor.]
Some sample code and (incomplete) notes on it here: