Forum Discussion

quangtran's avatar
Icon for Cirrus rankCirrus
Jun 04, 2023

irule reject request when payload field is null

Hello everyone, I have the following case, when there is a request to my url:,  the payload will have to have the fields test, test1, test2, test3. Attac...
  • Hi quangtran , 
    try to modify this line : 

    if { [HTTP::uri] starts_with "" } {

    to this line : 

    if { [HTTP::uri] starts_with "/aaa" } {
    if { [HTTP::uri] contains "/aaa/v1/xx/test/okokokok" } {

    I relied on the below article to write it :


    Hope this helps you