Re: [squid-users] HTTP Cache General Question

From: Henrik Nordstrom <henrik_at_henriknordstrom.net>
Date: Fri, 09 Oct 2009 18:26:24 +0200

fre 2009-10-09 klockan 09:33 -0400 skrev Mark Schall:

> Peer 1 sends HTTP Request to Peer 2 with
> "www.tracker.com/someuniqueidentifierforchunkoffile" in the header.
> Would Squid or other Web Caches try to contact www.tracker.com instead
> of the Peer 2, or will it forward the request onward to Peer 2.

HTTP does not have both host and address detail. HTTP have an URL. If a
client requests

  http://www.tracker.com/someuniqueidentifierforchunkoffile

from the proxy then the proxy will
request /someuniqueidentifierforchunkoffile from www.tracker.com.

If the client does direct connections (not configured for using proxy)
then it MAY connect to other host and request

  GET /someuniqueidentifierforchunkoffile
  Host: www.tracker.com

from there. But if that is intercepted by a intercepting HTTP proxy then
the proxy will generally use the host from the Host header instead of
the intercepted destination address.

Regards
Henrik
Received on Fri Oct 09 2009 - 16:26:29 MDT

This archive was generated by hypermail 2.2.0 : Fri Oct 09 2009 - 12:00:02 MDT