[REBOL] Re: R: Re: Reading and setting cookies
From: gabriele:colellachiara at: 20-Nov-2005 14:14
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/