[REBOL] Re: HTTP question.
From: gchiu:compkarori at: 28-Mar-2002 22:29
> Example:
>
> trace/net: true
> myURL: http://www.yahoo.com/
> myData: read myURL
>
> Ideally I'd like to be able to see the headers the server
> responds with -
> like the mime type it claims, etc. Is there some easy
> way to access these
> values when reading a URL?
Hi Porter,
You could use my http-tools stuff.
do http://www.compkarori.co.nz/reb/http-tools.r
test: http-tools http://www.yahoo.com []
probe test
make object! [
HTTP-Response: "HTTP/1.0 200 OK"
Date: "Thu, 28 Mar 2002 10:25:41 GMT"
Server: none
Last-Modified: none
Accept-Ranges: none
Content-Encoding: none
Content-Type: "text/html"
Content-Length: none
Location: none
Expires: none
Referer: none
Connection: "close"
Set-Cookie: none
Accept-Charset: none
content: {<.....
]
--
Graham Chiu