[REBOL] Re: R: Re: Reading and setting cookies
From: rebol-list2:seznam:cz at: 27-Nov-2005 16:06
Hello Volker,
Monday, November 21, 2005, 2:49:15 AM, you wrote:
VN> On 11/21/05, Giuseppe Chillemi <gchillemi-aliceposta.it> wrote:
>>
>>
>> > Now http-tools.r is working and I know hot to pass http post valuVN> es
>> > but I would be much happier to fully understand the inner working of wVN> hat
>> > greg has written to me.
>>
>> Oooops.... The person is Gabriele and not Greg.
>>
VN> Based on Gabrieles code a short demo. Hope it makes some sense.
VN> Accessing cookie-pages.
VN> A very raw demo, cookie-parsing needs lots of improvements.
VN> browser-demo: http://polly.rebol.it/cgi-bin/cookie-demo.cgi
VN> cgi-source: http://polly.rebol.it/test/test/cookie-demo/cookie-demo.cgi
VN> rebol client-demo: http://polly.rebol.it/test/test/cookie-demo/cookie-demo.VN> r
The expires date format used in the cookies-demo.cgi is not correct.
It should be formated:
Wdy, DD-Mon-YYYY HH:MM:SS GMT
you have:
Wdy, DD Mon YYYY HH:MM:SS GMT
see:
http://wp.netscape.com/newsref/std/cookie_spec.html
This is based on RFC 822, RFC 850, RFC 1036, and RFC 1123, with the
variations that the only legal time zone is GMT and the separators between
the elements of the date must be dashes.
>>
>> Giuseppe Chillemi
>>
>>
>>
>> --
>> To unsubscribe from the list, just send an email to
>> lists at rebol.com with unsubscribe as the subject.
>>
>>
VN> --
VN> -Volker
VN> "Any problem in computer science can be solved with another layer of
VN> indirection. But that usually will create another problem." David
VN> Wheeler
--
Best regards,
rebOldes -----------------[ http://oldes.multimedia.cz/ ]