quangtran
Jun 04, 2023Cirrus
irule reject request when payload field is null
Hello everyone, I have the following case, when there is a request to my url: https://10.10.10.10/aaa/v1/xx/test/okokokok, the payload will have to have the fields test, test1, test2, test3. Attac...
- 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