Header Keycheck

How can I create a keychek where the condition is if there is a header.
Example:

If data.HEADERS["Token"] exist
data.STATUS = "BAN";
IF DICTKEY @data.HEADERS HasKey "Token"
data.STATUS = "BAN";
END
1 Like

Thanks a lot, it did work.

Is there any way to do the same in OB1?

Probably something like

IF "<HEADERS(Token)>" Exists
SET STATUS BAN
ENDIF

But I don’t remember much, so it might be wrong

1 Like