title: Golang: how to follow location with cookie
body: <p>In case the response to an http request is a redirection (http code 302) with a cookie,</p>
  
  <p>how can you instruct your Go client to follow the new location with the cookie that has been received?</p>
  
  <p>in CURL, this can be easily achieved by setting the client with:<br></p>
  
  <pre><code> COOKIEFILE = ""
   AUTOREFERER = 1
   FOLLOWLOCATION = 1
  </code></pre>
  
  <p>how can you do that in Go?</p>