Unanswered question

cookies not updating with set variable

So here is the cookie that i send in one of my request:

Cookie: LkBvX8K9uLmxArh9ILW0FnANjW5IphVmIzl94Gutccg%3D=4c7187a4103b0e3a7faa843ffe9f4923; back_equipment_id=139366; _gat=1

now i have replaced the static value of equipment_id to be dynamic , like this

LkBvX8K9uLmxArh9ILW0FnANjW5IphVmIzl94Gutccg%3D=8727c24187d7702a98d0b0334c7a5531; back_equipment_id=${newVehicleID}; _gat=1

the problem is,

when i do a run, i still get static value of 139366. However, every other place in url or as part of a post, the variable {newVehicleID} gives updated value and works fine.

in my research online, it looks like the workaround is to use javascript, but i am not sure how to capture the cookie value in a request so that i can manipulate it.

Any help is greatly appreciated. Thanks.

vinod K.
vinod K.

vinod K.

Level
0
12 / 100
points

Answers

vinod K.
vinod K.

vinod K.

Level
0
12 / 100
points

So, i was able to assign the above variable (including the other cookie values) to "set-cookie" variable. this is a new header variable in the request.

Most likely this supersedes the cookie variable.

I am sure this is only a hack that fixed my problem so appreciate if someone can find the right solution.