on 6/3/02 2:02 PM, [EMAIL PROTECTED] purportedly said:

> Ok, but does this header returned by the server include the
> size of the document generated.How would it know the size!?
> If it does it in some manner - i what variable can I find the
> relevant information?

Precisely speaking, the "Content-length" header will contain the size in
bytes of the entity-body. If you are only dealing with single-part MIME
types (as opposed to multi-part), that will be the size of the response
without headers. This is usually reliable unless the Transfer-Encoding
header is set to "chunked", in which case it is a bit more complicated, and
you should not see a Content-length header.

Look in the LWP docs for methods to parse headers. You may also want to
familiarize yourself with the HTTP 1.1 spec:
    http://www.ietf.org/rfc/rfc2616.txt?number=2616

Keary Suska
Esoteritech, Inc.
"Leveraging Open Source for a better Internet"

Reply via email to