title: Having trouble getting jQuery AJAX response headers
body: <p>This is what I'm trying:  </p>
  
  <pre><code>$.ajax({
    type: 'GET',
    url: 'http://imgur.com/upload/',
    data: {
      url: 'http://upload.wikimedia.org/wikipedia/commons/3/3e/Phalaenopsis_JPEG.png'
    },
    complete: function(jqXHR, textStatus) {
      console.log(jqXHR.getAllResponseHeaders());
    }
  });
  </code></pre>
  
  <p>I just get an empty string.</p>
  
  <p>Any help would be appreciated.</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>These are the response headers I can see in Firebug:</p>
  
  <pre>
  Server: nginx
  Date: Sat, 02 Jul 2011 03:04:26 GMT
  Content-Type: text/html; charset=utf-8
  Transfer-Encoding: chunked
  Connection: close
  Set-Cookie: IMGURSESSION=asdfasdfasdfasdf; path=/; domain=.imgur.com
  SERVERID=www4; path=/
  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
  Location: http://imgur.com/ocuVX
  Content-Encoding: gzip
  Vary: Accept-Encoding</pre>