Re: [squid-users] Issues with Squid and authenticated sites

From: Henrik Nordstrom <henrik_at_henriknordstrom.net>
Date: Mon, 16 Jun 2008 21:39:53 +0200

On mån, 2008-06-16 at 14:04 -0300, Henrique Machado wrote:
> Since I´m a very stubborn person, I´m still trying.

Good.

> Doing some further research, I found a post in squid list from 3 years
> ago (in fact, you answered to it that time) where a user said he
> changed squid so it would return to the browser a HTTP_UNAUTHORIZED
> (401) message and then a WWW-Authenticate response-header.

Yes.. it's what Squid does.

squidclient ftp://someone@localhost
HTTP/1.1 401 Unauthorized
Server: squid/2.HEAD-CVS
Date: Mon, 16 Jun 2008 19:38:46 GMT
Content-Type: text/html
Content-Length: 1293
Expires: Mon, 16 Jun 2008 19:38:46 GMT
X-Squid-Error: ERR_CACHE_ACCESS_DENIED 0
WWW-Authenticate: Basic realm="ftp someone"
X-Cache: MISS from henrik
X-Cache-Lookup: MISS from henrik:3128
Via: 1.0 henrik:3128 (squid/2.HEAD-CVS)
Connection: close

Regards
Henrik

Received on Mon Jun 16 2008 - 19:39:58 MDT

This archive was generated by hypermail 2.2.0 : Tue Jun 17 2008 - 12:00:03 MDT