On 05/05/2012 06:31 AM, gslavic wrote:
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
ICAP is the perfect solution for this kind of functionality. An ICAP daemon receives all request headers in a REQMOD request and can make decisions (rewrite/redirect) based on those headers. Marcus