On Fri, 1 Oct 2004, OTR Comm wrote:

Could someone tell me how squid recognizes the end of a GET sequence?  I
assume the end of a PUT session is similar?

RFC 2616.

For example, when squid sends a GET request for a specific html page,
the answering server sends the requested data, but how does squid know
when the data transmission stream for that particular page has ended?

This depends on the type of reply. In HTTP/1.0 there is only two methods

a) Content-Length headers.

b) Close of connection (when no Content-Length header).

To keep it simple, lets suppose that the requested page doesn't have any
graphics, so we just have one GET from squid.

HTTP is not concerned with pages, just objects (the HTML, one image, etc..). Each object is it's own request.


Regards
Henrik

Reply via email to