Forum Discussion
andrew_deackes_
Nimbostratus
Nov 26, 2009Substitue user-agent header
Hi,
I'm sure someone has probably covered this before but I couldn't find anything quite relevant so here goes.
With some very specific users who are running IE 8 on Vist...
hoolio
Cirrostratus
Nov 26, 2009Hi Andrew,
You can use an iRule like this to check the User-Agent string length and truncate any that are over 256 characters.
when HTTP_REQUEST {
Check the length of the User-Agent header
if {[string length [HTTP::header User-Agent]] > 256}{
Replace the User-Agent header value with the first 256 characters
HTTP::header replace User-Agent [string range [HTTP::header User-Agent] 0 255]
}
}
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects