Forum Discussion
peter_56193
Jul 26, 2012Nimbostratus
irule to add string for mobile device
HI all, can some one have a look of my irule, try to add string if the request is from mobile device.
have setup data group MobileAgents contain mobile device key words.
when HTTP_REQUE...
dlg_23340
Aug 02, 2012Cirrus
OK, that last bit of irule, i added a ! for some other testing. Editing is apparently out of the question here, so here is the irule as I reformatted it. Ignore what I posted above.
when HTTP_REQUEST {
if { !([HTTP::uri] contains "requestAgent") } {
if { ([matchclass [HTTP::header "User-Agent"] contains $::MobileAgents]) } {
HTTP::redirect "https://[HTTP::host][HTTP::uri]?requestAgent=mobile"
}
}
}
mods: can we speed this thing up a little? :[
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