title: How to get a hold of the first HTTP (redirect) response?
body: <p>I developed a code by using the Go http package so that I can get the status code of any url . But after a bit of digging I checked to see why the request was taking long and I discovered that the URL keeps redirecting until I get status 200 OK. </p>
  
  <p>I want to manage to get the first response from the web server. I don't want to get always 200 OK, whatever it gives me I want to take it. What should I do?</p>
  
  <p>Example:
  <a href="https://apple.com" rel="nofollow">https://apple.com</a> responded 301 MOVED PERMANENTLY when I used cURL to get the code.
  That's the response I want, not a redirect to 200.</p>