in reply to Page doesn't appear to finish

Usually the problem is the Content-Length field. I had the same kind of thing before. Most of the client side program determines whether it has received the whole page, base on the value received in Content-Length field.

Better to fix the Content-Length field when you modify the content of a page.

But, some time you don't need to fix the length, it still appears to be okay, why? That is because, the client reads in msg from socket chunk by chunk, not bytes by bytes, so there is a grey area. Look at the folllowing two examples:

Replies are listed 'Best First'.
Re: Re: Page doesn't appear to finish
by Elliott (Pilgrim) on Nov 25, 2002 at 10:11 UTC
    Brilliant! Thank you to both of you who told me about Content-length. Solved the problem instantly.

    I would like to understand more about "Connection: close". When/how would I send that? Presuambly it has to be in the headers i.e. before all content, but mightn't that close the connection too early?