Forum Discussion
Bob_10976
Jun 22, 2011Nimbostratus
Converting Regex to iRule
I've been tasked with moving our ISAPI rules from the web server to the LTM iRules. I understand ISAPI use regex, however I'm not familiar with that as I need to be so I was hoping to get some ...
Michael_Yates
Jun 27, 2011Nimbostratus
It depends on which information you are wanting from the headers:
when HTTP_REQUEST {
switch "[string tolower [HTTP::host]]" {
"test.sitename.us.com" -
"cms.test.sitename.us.com" {
log local0. "Before: [HTTP::header names]"
HTTP::header replace Host "sitename.us.com"
log local0. "After: [HTTP::header names]"
}
}
}
Look here at Hoolio's Post for more information on logging HTTP Headers: http://devcentral.f5.com/wiki/default.aspx/iRules/LogHttpHeaders.html
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