Re: ICP URL parsing

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Fri, 27 Aug 2004 16:41:41 +0200 (CEST)

On Fri, 27 Aug 2004, Jason mclaughlin wrote:

> My proxy server sends the ICP query using a URL that includes the Port
> (for no particular reason, just trying to be consistent), and Squid
> seems to distinguish between http://www.website.com:80/ and just
> http://www.website.com/
>
> So basically, all ICP queries are giving misses even when they're
> cached, if I remove the Port it works fine.
>
> Is there any reason for this?

Squid simply assumes that any URLs received via ICP is in normalized form

   - Protocol lowercased
   - Hostname lowercased
   - No default port numbers, port only specified if different from the
default of the protocol.

There is no specific reason to why this is done other than simplicity.

> P.S. Don't flame me if you think the product name is in bad taste, I
> didn't think of it ;)

It is..

Regards
Henrik
Received on Fri Aug 27 2004 - 08:41:43 MDT

This archive was generated by hypermail pre-2.1.9 : Wed Sep 01 2004 - 12:00:04 MDT