title: How to access the headers a HTTP response that you didn't send by AJAX using javascript?
body: <p>I currently have a login page set up where it sends a HTTP post request to the server and then in a response message it redirects me to another page on the server. On that page I want to access the location header which contains a value that I need to perform future work with my server. Is there anyway to read that location header from the response so that I can get the value?</p>
  
  <p>I know that you can access headers if you sent an ajax request by using the XMLHttpRequest object in the callback! But I am not using ajax so I cannot do that?</p>
  
  <p>Thanks so much!</p>