[squid-users] store_id_extras and http Request Headers

Alex Rousskov rousskov at measurement-factory.com
Wed Jul 18 20:35:04 UTC 2018


On 07/18/2018 02:29 PM, Michael Pro wrote:
> In squid.conf
> store_id_extras "%>a/%>A %un %>rm %>h myip=%la myport=%lp
> %{User-Agent}>h %{Referer}>h %{Host}>h %>rP"
> 
> Result incoming parameters in store_id_program are:
> 0:  https://2ip.ua/images/icon/IP_calculator.png <--- (requested url)
> 1:  127.0.0.119/127.0.0.119  <--- %>a/%>A
> 2:  -           <--- %un (this is ok, absent at all)
> 3:  GET  <--- %>rm
> 4:  -           <----- %>h ---> Where are they !?!?!?
> 5:  myip=127.0.0.1
> 6:  myport=20990
> 7:  Mozilla/5.0%20(iPhone;%20CPU%20iPhone%20OS%2...  <--- %{User-Agent}>h
> 8:  https://2ip.ua/ru/  <--- {Referer}>h
> 9:  2ip.ua  <--- %{Host}>h
> 10: 443  <--- %>rP
> 
> How do I get all the request header fields?
> I do not need any separate, I need all fields in the request header.

The lack of %>h output when %{Name}>h output is present looks like a
Squid bug to me -- %>h output should be there as well.

Alex.


More information about the squid-users mailing list