Is there a way to get the computer name using any predefined variables or any other mechanism in the postman.
My API needs a request header which has the machine name Request header.
Is there a way to get the computer name using any predefined variables or any other mechanism in the postman.
My API needs a request header which has the machine name Request header.
Hi abhina,
I am assuming you want to set that variable from the Pre-requests Scripts tab. Unfortunately,
system variables (i.e. computer name) are not visible to Postman scripts by default for security reasons.
If you are using this Newman I would suggest reading up on a work around here > https://github.com/postmanlabs/postman-app-support/issues/3180
John
Thanks John for the quick response. I did read that thread.
I was just hoping may be something new is planned, but i understand the issue.