Forum Discussion
T5C
Mar 01, 2022Altocumulus
irule - 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
Mar 01, 2022Cumulonimbus
when 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 } {
}
}
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