FWIW browscap is apparently a way of deriving browser information.
Does anyone have anything interesting on the [browscap] entry of php.ini?
Is it in general use nowadays? Much of what I am finding is quite old
however the basic data source for it seems to be being maintained:
http://code.google.com/p/phpbrowscap/I came across browscap while searching for ways to resolve an apparent
difficulty that some .gov visitors were having browsing my site. The logs
showed that all GETs for JavaScript beared UAs carrying additional quite
complex data strings which I presume to be markers (purpose unknown):
.CSS file ~ Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; InfoPath.2)
.JS files ~ Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; InfoPath.2) +sfgRmluamFuX1R5cGU9amF2YV9zY3JpcHQmRmluamFuX0xhbmc9dGV4dC9qYXZhc2NyaXB0+
A Google search on that strange code string didn't clarify much other
than a suggestion that it may be a mechanism to throw cache. I noticed
though that others too were apparently seeing this string against .js files.
ISP or proxy insertion? Whatever. The resultant issue was that the string
was provoking a 403 forbidden response from my SME, probably from one
of my many httpd.conf filters all of which will remain just so. The event
did clearly underline the complete absence of any proactive JS detection
on my part and it was this that started off the whole exercise.
I tried a number of methods which included the attempted use of browscap,
various snippets of JS and also simple <noscript></noscript> tags. Lots of
confusion, variant browser responses, multiple JS conflicts later (it took a
day of messing about) finally ended up with the best universal compromise.
FWIW it was using a JS clause and learning how to cope with multiple onloads.
That still left the mechanism known as [browscap]... the subject of this
discussion thread, which I think I would like to have available just in case.
Does anyone have any thoughts, HOWTOs or RPMs to offer or share?