Postman Community
Access Request Headers after hitting the request
Help Hub
cookie
,
header
,
cookies
,
pre-request-script
,
request-params
w4dd325
(w4dd325)
June 19, 2022, 10:43pm
2
Hi
@maintenance-enginee2
Try;
console.log(pm.request.headers.get("Cookie"));
Example req;
Output;
Unable to read header value for a request that is sent in Pre-req
show post in topic
Related topics
Topic
Replies
Views
Activity
Access Request-Headers AFTER hitting the request
Help Hub
cookie
,
header
,
cookies
,
pre-request-script
,
request-params
0
471
June 18, 2022
Unable to read header value for a request that is sent in Pre-req
Help Hub
tests
,
authentication
16
17453
June 20, 2022
Accessing Request Values from the Console
Help Hub
request
,
pre-request-script
6
1326
October 25, 2023
How to get auto-generated headers with pm.request.headers?
Help Hub
header
1
2008
October 13, 2022
Adding a header in a pre-request script
Help Hub
2
51449
May 10, 2019