Graham - thanks so much - that's perfect. Cookies, too! I'm just building something to help me analyze pages, and page responses. And this will make it much easier; much more like using an HTTP lib in another language - where a response object is returned, and one attribute of the object is the content, etc.
- Porter Woodward ----- Original Message ----- From: "Graham Chiu" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, March 28, 2002 5:29 AM Subject: [REBOL] Re: HTTP question. > > > > 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 > -- > To unsubscribe from this list, please send an email to > [EMAIL PROTECTED] with "unsubscribe" in the > subject, without the quotes. > > -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with "unsubscribe" in the subject, without the quotes.
