title: Multiple redirect headers
body: <p>I'm writing a scraper using Curl and I found that a lot of pages include multiple redirecting headers, like:</p>
  
  <pre><code>HTTP/1.1 302 Moved Temporarily
  Server: nginx/1.0.4
  Date: Thu, 17 Nov 2011 17:46:35 GMT
  Transfer-Encoding: chunked
  Location: http://secure.domain.net/track/NDg6MTE6MTU/?autocamp=TJ_ABC_VA_A02
  
  HTTP/1.1 302 Found
  Date: Thu, 17 Nov 2011 17:46:37 GMT
  Server: Apache
  Expires: Thu, 19 Nov 1981 08:52:00 GMT
  Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
  Pragma: no-cache
  Set-Cookie: nats_cookie=Bookmark; expires=Fri, 18-Nov-2011 17:46:37 GMT; path=/; domain=domain.net
  Set-Cookie: nats=MjYwNjk6MTE6MTU%2C0%2C0%2C0%2C0; expires=Sun, 27-Nov-2011 17:46:37 GMT; path=/; domain=domain.net
  Set-Cookie: nats_sess=00e48c685c9acbb37fcc3b7461b1ab81; expires=Sat, 25-Feb-2012 17:46:37 GMT; path=/; domain=domain.net
  Location: http://www.domain.net/tour/?nats=MjYwNjk6MTE6MTU,0,0,0,0&amp;autocamp=TJ_ABC_VA_A02
  Transfer-Encoding: chunked
  Content-Type: text/html
  
  HTTP/1.1 200 OK
  Date: Thu, 17 Nov 2011 17:46:39 GMT
  Server: Apache
  Transfer-Encoding: chunked
  Content-Type: text/html
  </code></pre>
  
  <p>As you can see there are two headers with the "Location:" directive.</p>
  
  <p>I'm just wondering why they do this.
  Wouldn't be enough to include only one header?</p>
  
  <p>The redirecting URLs are even different, 
  So which one is the "real" landing page?</p>
  
  <p>Thanks.</p>