Re: [squid-users] Keep-Alive header not being displayed

From: JL <bearmeat_at_gmail.com>
Date: Thu, 11 Sep 2008 19:11:47 -0700

On Thu, Sep 11, 2008 at 5:32 PM, Amos Jeffries <squid3_at_treenet.co.nz> wrote:
> JL wrote:
>>
>> In my headers, the "HTTP_KEEP_ALIVE = 300" is not displaying and I'm
>> not sure why.
>
> HTTP headers do not naturally display.
> What are you using to do the display, from what data source, when and on
> what input?
>
> Amos
>
>> I have the following header_access rules:
>>
>> header_access X-Forwarded-For deny all
>> header_access Proxy-Connection deny all
>> header_access Via deny all
>> header_access All allow all
>>
>> With these rules I get the following headers:
>>
>> HTTP_ACCEPT = image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
>> application/x-shockwave-flash, application/vnd.ms-excel,
>> application/vnd.ms-powerpoint, application/msword, */*
>> HTTP_ACCEPT_ENCODING = gzip, deflate
>> HTTP_ACCEPT_LANGUAGE = en-us
>> HTTP_CONNECTION = keep-alive
>> HTTP_COOKIE =
>> __utma=131785806.1971945049.1220944678.1221168849.1221173272.5;
>>
>> __utmz=131785806.1220944678.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none);
>> __utmb=131785806; __utmc=131785806
>> HTTP_HOST = www.proxyjudge.biz
>> HTTP_REFERER = http://proxyjudge.biz/
>> HTTP_UA_CPU = x86
>> HTTP_USER_AGENT = Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1;
>> .NET CLR 1.1.4322; .NET CLR 2.0.50727)
>> REMOTE_ADDR = XXX.XXX.XXX.XXX
>> REMOTE_PORT = 51600
>> REQUEST_METHOD = GET
>> REQUEST_URI = /az.php
>>
>> I have even tried removing all the header_access rules except for
>> header_access All allow all. However, HTTP_KEEP_ALIVE = 300 does not
>> display.
>>
>> I am using Squid Version 2.6.STABLE6 on Red Hat Enterprise Linux 5.
>>
>> Any help is appreciated, thanks.
>
>
> --
> Please use Squid 2.7.STABLE4 or 3.0.STABLE8
>

I have configured my browser to use my Squid HTTP proxy and am going
to the following URL to check the HTTP headers:
http://www.proxyjudge.biz/az.php

Unfortunately the HTTP_KEEP_ALIVE = 300 header is not displayed and I
would like it to be.

Here is my full squid.conf

---------------------------------------------------------
http_port 3128
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
cache deny QUERY
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
maximum_object_size 51200 KB
access_log /var/log/squid/access.log squid

refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl CONNECT method CONNECT
acl our_networks src YYY.YYY.YYY.YYY

acl ip1 myip XXX.XXX.XXX.XXX

http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow our_networks
http_access allow localhost
http_access deny all
http_reply_access allow all
icp_access allow all

tcp_outgoing_address XXX.XXX.XXX.XXX ip1

forwarded_for off

header_access X-Forwarded-For deny all
header_access Proxy-Connection deny all
header_access Via deny all
header_access All allow all

coredump_dir /var/spool/squid

------------------------------------------------------------------------------------------------------

Any help getting HTTP_KEEP_ALIVE = 300 to display is appreciated!
Received on Fri Sep 12 2008 - 02:11:53 MDT

This archive was generated by hypermail 2.2.0 : Fri Sep 12 2008 - 12:00:03 MDT