Forum Discussion
HTTP::header
I have issues implementing class match on [HTTP::header "User-Agent"] contains "Mobile-Agents" DataGroup.
I have LTM v11.5.4 and it seems that it reset the request all the time.
I have a URI where all the request supposed to go, but it works only with notebooks or PC, but not mobiles.
Then I implemented the second iRule for http header inspection and redirection, but it resets all request.
Any ideas?
3 Replies
- Vijay_E
Cirrus
iRule shouldn't be reseting connection unless explicitly specified to do so. I would recommend trying to utilize CURL to see if the iRule function is as expected. If possible, provide your iRule and any error you may be seeing in the logs. You can also try and use K13223 to identify ther RST reason.
- janholtz
Altostratus
You're always able to insert a Connection: Keep-Alive header in the response...
- JG
Cumulonimbus
Would the following be what you are really after:
when HTTP_REQUEST { if { [class match [HTTP::header "User-Agent"] contains Mobile-Agents] or [HTTP::path] equals "/"} { HTTP::redirect "https://xxxxx.com/zzzzapp" } }?
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