Forum Discussion
irule reject request when payload field is null
- Jun 04, 2023
REFERENCE: "HTTP::uri" [https://clouddocs.f5.com/api/irules/HTTP__uri.htm]
The referenced iRules command is probably NOT returning "https://10.10.10.10 ..." but rather "/aaa/v1 ...". So try modifying the check so that it is instead:
if { [HTTP::uri] starts_with "/aaa/v1/xx/test/okokokok" }
and see if that solves the issue.
- Jun 04, 2023
Hi quangtran ,
try to modify this line :if { [HTTP::uri] starts_with "https://10.10.10.10/aaa/v1/xx/test/okokokok" } {
to this line :
if { [HTTP::uri] starts_with "/aaa" } { or if { [HTTP::uri] contains "/aaa/v1/xx/test/okokokok" } {
I relied on the below article to write it :
https://clouddocs.f5.com/api/irules/HTTP__uri.htmlHope this helps you
Hi quangtran ,
try to modify this line :
if { [HTTP::uri] starts_with "https://10.10.10.10/aaa/v1/xx/test/okokokok" } {
to this line :
if { [HTTP::uri] starts_with "/aaa" } {
or
if { [HTTP::uri] contains "/aaa/v1/xx/test/okokokok" } {
I relied on the below article to write it :
https://clouddocs.f5.com/api/irules/HTTP__uri.html
Hope this helps you
- quangtranJun 04, 2023Cirrus
Thanks Mohamed_Ahmed_Kansoh ,
Thank you and really appreciate the feedback.
- Jun 04, 2023
you're most welcome 🙂
Recent Discussions
Related Content
* 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