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

[REBOL] Re: Reading HTTP headers

From: sterling:rebol at: 12-Jan-2002 19:19

If you do a normal OPEN, it will read the whole page right then. If you demand that no part of the web page be read at all, then the directions below are the way to go. However, if you don't mind if just a bit is read (one packet worth), then you can do the following: a: open/direct http://www.rebol.com probe a/locals close a Probing the port after the OPEN will show data in the inBuffer field of the sub-port but it's not thw whole page unless the page is very small. Probing the locals will get everything but the "HTTP/1.1 200 OK" line in an object. Fields that are NONE, were not specified. Hope that helps. Sterling