[squid-users] Redirector idea using request header

From: gslavic <gslavic_at_gmail.com>
Date: Sat, 5 May 2012 02:31:41 -0700 (PDT)

Hi, there,

Is there a way to read "Request Header" BEFORE it is writen in access.log ?

Example:
There are three versions of internet site. One for Simbian phones, one for
Android phones, one for regular internet browsers. In request header there
is a field:

*/User-Agent: Mozilla/5.0 (SymbianOS/9.2; U; Series60/3.1
NokiaE71-1/200.21.118; Profile/MIDP-2.0 Configuration/CLDC-1.1 )
AppleWebKit/413 (KHTML, like Gecko) Safari/413/*
if the client is using Symbian OS / Nokia E71 phone, and an field

*/User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.19 (KHTML,
like Gecko) Chrome/18.0.1025.168 Safari/535.19/*
if the client is using WIndows 7 x64 / Chrome browser.

If (for example) redirector program gets the request header as a input
variable (or as a system variable, or has the ability to read it from some
log that is written before request is processed by squid) it will have the
ability to filter or redirect users to adequate version of the site for the
hardware/software combination.

Any ideas ?

Thanks in advance.
Goran

--
View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/Redirector-idea-using-request-header-tp4610819.html
Sent from the Squid - Users mailing list archive at Nabble.com.
Received on Sat May 05 2012 - 09:31:45 MDT

This archive was generated by hypermail 2.2.0 : Sun May 06 2012 - 12:00:03 MDT