Forum Discussion
Eblakely_225577
Nimbostratus
Nov 28, 2016Use of getfield in iRule
Hi all,
I'm using iRules to implement some rate limiting based on a custom HTTP header our users insert into each request.
The relevant bits in the iRule are as follows:
if { [HTTP::header...
Kai_Wilke
MVP
Nov 28, 2016Hi Eblakely,
you may use one of the commands below to extract your Authorization data.
Example 1: Serach the position of the first
character, then skip directly after the found position and take the remaining string. whitespace
set limiter [findstr [HTTP::header value Authorization] " " 1 end]
Example 2: Same as Example 1 but with additional removal of any additional
.whitespaces
set limiter [join [findstr [HTTP::header value Authorization] " " 1 end] ""]
Cheers, Kai
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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