COOKIES PARSING


  • Banned

    Hello
    i want pars cookie and use in custom field as cookie: <COOKEIS>

    i know cookies will capture and pars automatically and i dont need to make pars for parsing them
    but if i use <COOKIES> , all cookies will submit like this : (abck:ksangvlkasg)(session:anglsakgna) and...

    i mean they will submit with " () "
    so how i can use them without () ???

    i know i can pars all the cookies one by one but cookies are too much
    and site , if i dont set cookies in custom header will give "ACCESS DENIED" respons

    thanks for your helps


  • Admin

    This will take you from
    {(name1, value1), (name2, value2)}
    to
    name1=value1; name2=value2

    REQUEST GET "https://google.com"
    PRINT <COOKIES>
    FUNCTION REPLACE ")," ";" "<COOKIES>" -> VAR "EDITED"
    FUNCTION REPLACE ", " "=" "<EDITED>" -> VAR "EDITED"
    FUNCTION REPLACE "\{|\}|\(|\)" "" UseRegex=True "<EDITED>" -> VAR "EDITED"
    

    another way to do the same thing would be

    FUNCTION Constant "<COOKIES(*)>=" -> VAR "NAMES"
    FUNCTION Constant "<COOKIES{*}>;" -> VAR "VALUES"
    UTILITY List "NAMES" Zip "VALUES" -> VAR "JOINED"
    

  • Banned

    thanks you my friend


Log in to reply