Re: Send proxy authorization header to squid

2011-05-16 Thread Willy Tarreau
Hi Igor,

On Sat, May 14, 2011 at 01:50:06AM +0800, Igor wrote:
> Hi all,
> 
> In my frontend conf, I used
> 
> reqadd Proxy-Authorization:\ Basic\ 
> 
> to send auth header to proxy, other proxy works OK, but squid proxy
> seems doesn't like Proxy-Authorization header, it continues return 407
> error for *some* requests but some requests return 200 tcp OK.
> 
> This is bug or conf wrong?

What you describe makes me think that your config works in "tunnel" mode,
which means that only the first request of every connection is parsed and
processed. You have to add "option http-server-close" to handle the situation
correctly.

Regards,
Willy




Re: Send proxy authorization header to squid

2011-05-16 Thread Igor
Thanks. The problem solved.

Bests,
-Igor



On Tue, May 17, 2011 at 3:45 AM, Willy Tarreau  wrote:
> Hi Igor,
>
> On Sat, May 14, 2011 at 01:50:06AM +0800, Igor wrote:
>> Hi all,
>>
>> In my frontend conf, I used
>>
>> reqadd Proxy-Authorization:\ Basic\ 
>>
>> to send auth header to proxy, other proxy works OK, but squid proxy
>> seems doesn't like Proxy-Authorization header, it continues return 407
>> error for *some* requests but some requests return 200 tcp OK.
>>
>> This is bug or conf wrong?
>
> What you describe makes me think that your config works in "tunnel" mode,
> which means that only the first request of every connection is parsed and
> processed. You have to add "option http-server-close" to handle the situation
> correctly.
>
> Regards,
> Willy
>
>