--- bill lam <[EMAIL PROTECTED]> wrote:
> Most servers supply 'Content-length:' or 'Content-Length:' attribute for > resources, especially for non-textual items. This is more reliable than > detecting closing socket. If this is not given then it might be a good idea to > limit the size of data to be read. Yes, but HTTP/1.1 uses chunks, which instead of Content-Length prepends each chunk with count. So the byte counting is left for the next iteration. It should have separate layers for reading sockets and processing content: headers and chunks. It has to be buffered, as chunks may not coinside with boundaries of blocks. > it should allow request by specifying server only eg, > http://www.jsoftware.com This is a good suggestion, which is done, see http://www.jsoftware.com/jwiki/Scripts/HTTP_Get > -- > regards, > bill __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
