Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: R: Re: R: Re: Reading and setting cookies

From: compkarori::gmail::com at: 20-Nov-2005 21:20

http-tools was written at a time when Rebol did not support cookies ( well, it only supported one cookie ). I believe it does now. The problem with http-tools is that it implements it's own http protocol rather than building upon RT's one. On 11/21/05, Giuseppe Chillemi <gchillemi-aliceposta.it> wrote:
> Ciao Gabriele, > seems good but it is really cryptic. I have some questions: > 1) Which is the difference between this approach and http-tools.r > approach ? > 2) Read/custom and the block we could pass to it are undocumented > 3) About Cookie: "name=value"; how could I pass more cookis values ? > Where is some documentation about this way of operating ? > > Thanks > > Giuseppe Chillemi > > -----Messaggio originale----- > Da: rebol-bounce-rebol.com [mailto:rebol-bounce-rebol.com] Per conto di > Gabriele Santilli > Inviato: domenica 20 novembre 2005 14.14 > A: Giuseppe Chillemi > Oggetto: [REBOL] Re: R: Re: Reading and setting cookies > > Hi Giuseppe, > > On Sunday, November 20, 2005, 1:35:57 PM, you wrote: > > GC> I am on the client side of the thing. > GC> I want to access pages located in a remote server and I need to > GC> accept a cookie and make a login. I am taking a look at http-tools.r but > it > GC> does not set the data as promised: > GC> http-tools-data/cookie-data is empty. > > A few hints: > > >> p: open http://www.rebol.com > connecting to: www.rebol.com > >> print p/locals/headers > Date: "Sun, 20 Nov 2005 13:03:58 GMT" > Server: "Apache" > Last-Modified: "Thu, 10/Nov/2005/23:00:37/+GMT" > Accept-Ranges: "bytes" > Content-Encoding: none > Content-Type: "text/html" > Content-Length: "8015" > Location: none > Expires: none > Referer: none > Connection: "close" > Authorization: none > ETag: {"1d0325-1f4f-4373d115"} > > >> close p > >> p: read/custom http://www.rebol.com [header [Cookie: "name=value"]] > connecting to: www.rebol.com > == {<html> > <head> > <META NAME="Description" CONTENT="Lightweight distributed computing, > collaboration, and programming systems for t... > > Regards, > Gabriele. > -- > Gabriele Santilli <gabriele-rebol.com> --- http://www.rebol.com/ > Colella Chiara software division --- http://www.colellachiara.com/ > > -- > To unsubscribe from the list, just send an email to > lists at rebol.com with unsubscribe as the subject. > > -- > To unsubscribe from the list, just send an email to > lists at rebol.com with unsubscribe as the subject. >
-- Graham Chiu