title: How do I set a Global Variable in Postman with a value from one of the Request Header?
body: <p>I am sending a request via Postman that requires Basic Auth. 
  I want to save the value of the basic auth in a variable so i will be able to use it again. </p>
  
  <p>In the request I am sending I'm providing user name and password (basic), and it is translated into authorization header.
  i want to take the value sent in the request header, and save it. </p>
  
  <p><strong>how can i take the value from the request header and place in a env variable, all in Test Script?</strong></p>
  
  <p><a href="https://i.stack.imgur.com/pbrGQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pbrGQ.png" alt="enter image description here"></a></p>