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:

    REQUEST GET "https://google.com"
    PRINT <HEADERS(x-frame-options)>
    

    More about variables:
    https://openbullet.github.io/stacker.html#variables


Log in to reply