Forum Discussion
Strip User-Agent from incoming requests
I'm playing around in a lab, and I need to strip the User-Agent from incoming requests. The iRule I created goes like this:
when HTTP_REQUEST { { HTTP::header remove User-Agent } }
However, when I attempt to create the iRule, I receive this error:
1070151:3: Rule [/ISO2/app_strip_useragent] error: /ISO2/app_strip_useragent:2: error: [undefined procedure: HTTP::header remove User-Agent ][{ HTTP::header remove User-Agent }]
Any ideas? Seems to be a pretty simple task, but not sure why it's erroring out...
3 Replies
- Mike_Maher
Nimbostratus
Too many brackets. Try this
when HTTP_REQUEST { HTTP::header remove User-Agent } - nathe
Cirrocumulus
Or it can be done using a http profile on the virtual server.
- Arie
Altostratus
As of version 11.4.0 HTTP Profile functionality this is handled by the Local Traffic Policies feature. (http://support.f5.com/kb/en-us/solutions/public/14000/400/sol14409.html)
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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