THE FORUM IS IN READ-ONLY MODE

This forum is in read-only mode. The new forum is live at https://discourse.openbullet.dev and registrations are open!

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



  • very good what about lists and single when you need to use it .

    what the best way to grap many variables


  • Donator

    @hexanman
    You can use <COOKIES[*]> to get them all


Log in to reply