[Xitami] filters, pdf, c
Ewen McNeill
xitami@lists.xitami.org
Thu, 21 Jun 2001 00:41:14 +1200
In message <3ADF0299.C7BD06CA@usask.ca>, Shane D Pinder writes:
>Ordinarily, if a client downloads a large .pdf file, the user can see a
>progress indication that reassures them that the file is being transferred.
>[With filter, do not]
The progress indication can only be displayed if the total length to be
sent is known; for some reason it seems that this information is being
lost/omitted with the method you are using (or being ignored). The
Content-Length: header usually contains this information, and Xitami
should preserve this where possible.
> printf("Content-length: %u\nContent-Type: application/pdf\n\n",
> fsize);
Random thought: does it make any difference if you use Content-Length:
for the header name, rather than Content-length:? IIRC it's not
supposed to be case sensitive, but perhaps something is treating it as
case sensitive?
If you are able to do so, you might also want to capture the headers
sent back to the browser (eg, network traffic snooping) and see if the
Content-Length: header is still present, and has the right value in it.
Ewen
--
Ewen McNeill, Technical Consultant, iMatix Corporation www.imatix.com