Re: [squid-users] GET/PUT Question

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Fri, 1 Oct 2004 20:29:13 +0200 (CEST)

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
Received on Fri Oct 01 2004 - 12:29:15 MDT

This archive was generated by hypermail pre-2.1.9 : Mon Nov 01 2004 - 12:00:01 MST