Response Header
#1356
Replies: 1 comment
-
Hi @trex3648 can you please answer below
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I want to set a Response Header to a env variable in Test. I can't find any documentation to do this. I do something similar in Postman Tests with the below:
var locationHeader = postman.getResponseHeader("Location");
var id=locationHeader.substring((locationHeader.lastIndexOf("/") + 1),locationHeader.length);
postman.setEnvironmentVariable("LockId",id);
postman.setEnvironmentVariable("lockid",id);
postman.setGlobalVariable("LockId",id);
Is there a way to do something similar in Thunder Client?
Beta Was this translation helpful? Give feedback.
All reactions