Forum Discussion
T5C
Altocumulus
Mar 01, 2022irule - check query parameter
Hi I would like to check if specific query parameter (ids) in url is above some numeric value (300), if yes then redirect to specific page. Sample https request: https://xyz.ab/some/path/additition...
xuwen
Cumulonimbus
Mar 01, 2022when HTTP_REQUEST priority 500 {
set ids [URI::query [HTTP::uri] ids]
if { [HTTP::uri] starts_with "/some/path" && [catch { expr { int($ids) > 300 } } res] == 0 && $res == 1 } {
}
}
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