Forum Discussion
irfans_38826
Nimbostratus
Feb 28, 2008Search and replace a field in HTTP Header
I know iRules are capable of searching and replacing contents of a field in HTTP header, what I am wondering can it be done on dynamic content, in my case I am wondering if you can search for a particular field and change the case of data in it, so from upper case make it lower, or from lower case make it upper case
Following is example
Incoming request
x-up-calling-line-id:18583360321
x-up-subno:N_NBI_SDG_1184168037000100831348
Outgoing request
x-up-calling-line-id:18583360321
x-up-subno:n_nbi_sdg_1184168037000100831348
In this case data will always be in same field and of same length, what I am looking for is changing the case of data in that field.
I appreciate if someone know the answer if this is possible.
-Irfan
- hoolio
Cirrostratus
Hi, - irfans_38826
Nimbostratus
Aaron, - hoolio
Cirrostratus
Yes. But there are some TCL-specific variations from standard PCRE regexes. This site has a decent summary (Click here) - hoolio
Cirrostratus
I think I misread the original request. I thought he wanted to replace strings in the content. If it's headers, it should be simple like Stefan suggested:
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