How am I suppose to deal with this one!

Hello @Ruri and everyone
I just had a problem with Keycheck in OB2 which is as in the following picture

image

When the 2nd Key doesn’t exist it gives me ERROR though I put it for the SUCCESS status! as I remember we used to do the same thing in OB1 and works fine

1 Like

image
When you are going to perform checks on Headers or Cookies, you must use DICTKEY. If you used that, give me more information to verify what went wrong in your configuration, but usually it is because the keychek is misused.

you can check for specific functions each option of the keychek is used with the lolicode documentation
image

1 Like

Well I tried the DICTKEY it worked but the log ended with FAIL STATUS! though the KEY I put in the SUCCESS STATUS doesn’t exist in the headers! and thx btw.

you can replicate this using the following

BLOCK:Keycheck
  KEYCHAIN SUCCESS AND
    DICTKEY @data.HEADERS HasKey "X-Powered-By"
    DICTKEY @data.HEADERS DoesNotHaveKey "Location"
ENDBLOCK
2 Likes

It helped, Thank you Sir.

1 Like