How to parse cookies / headers

  • Admin

    After looking around for a bit, this seems to be the most asked question about OpenBullet.

    Let us start us off with this small guide then!

    Variables in OpenBullet can be of 3 types:

    • Single
    • List
    • Dictionary

    After a REQUEST block, the dictionary variables COOKIES and HEADERS are automatically filled with keys and values received from the server.

    You do not need to parse cookies / headers with a PARSE block!

    You can just type <COOKIES(name-of-your-cookie)> or <HEADERS(name-of-your-header)> anywhere and OpenBullet will replace it with the corresponding value (if it exists).

    LoliScript Example:

    PRINT <HEADERS(x-frame-options)>

    More about variables:

Log in to reply