Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

This is the conversation:

==> GET http://xy/z HTTP/1.1
<== HTTP/1.0 401 Unauthorized / Proxy-Connection: close

When bypassing Squid (squid/3.0.STABLE6), I get the HTTP basic authentication prompt, as it should.

Is there a specific setting that controls this behaviour, or is this actually a bug?

share|improve this question
add comment

1 Answer 1

I think I found the solution. Squid isn't really HTTP 1.1 compliant and thus intereferes with advanced stuff like persistent connections.

You can see here http://wiki.squid-cache.org/Http11Checklist under 8.1.2 that there is an open issue described as "assume http/1.1 servers will maintain persistent connections even after error responses from the server".

So: server sends 401 => squid closes the connection => BASIC auth doesn't work

Sad but true.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.