Search squid archive

Redirector idea using request header

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux