[REBOL] R: Re: R: Re: Reading and setting cookies
From: gchillemi::aliceposta::it at: 20-Nov-2005 15:05
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/