title: Jsoup redirect has not the same behaviour than browser redirect
body: <p>I'm facing a server through Jsoup (latest v 1.10.2) to extract some data from a page.
  This server is opened to anonymous users but it uses a redirect chain to grant a session ID to each user.</p>
  
  <p>This is the sequence, I got by browser:</p>
  
  <ol>
  <li>First request to <a href="http://SERVER_HOST/page" rel="nofollow noreferrer">http://SERVER_HOST/page</a> <br> 
  resp: 302 Redirect to Location <a href="http://SSO_SERVER" rel="nofollow noreferrer">http://SSO_SERVER</a></li>
  <li>Follow redirect, opening <a href="http://SSO_SERVER" rel="nofollow noreferrer">http://SSO_SERVER</a> <br>
  resp: 302 Redirect to Location <a href="http://SERVER_HOST/page?sessionID=123456" rel="nofollow noreferrer">http://SERVER_HOST/page?sessionID=123456</a></li>
  <li>Follow redirect, opening <a href="http://SERVER_HOST/page?sessionID=123456" rel="nofollow noreferrer">http://SERVER_HOST/page?sessionID=123456</a> <br>
  resp: 200 :)</li>
  </ol>
  
  <p>Unexpectedly with Jsoup, the redirect chain fails. Look at the difference into the step 2:</p>
  
  <ol>
  <li>First request to <a href="http://SERVER_HOST/page" rel="nofollow noreferrer">http://SERVER_HOST/page</a> (without cookies) <br> 
  resp: 302 Redirect to Location <a href="http://SSO_SERVER" rel="nofollow noreferrer">http://SSO_SERVER</a></li>
  <li>Follow redirect, opening <a href="http://SSO_SERVER" rel="nofollow noreferrer">http://SSO_SERVER</a><br>
  resp: 302 Redirect to Location /shared/SSO/http%3a%2f%2SERVER_HOST/page%3dsessionID=123456</li>
  <li>Follow redirect, opening <a href="http://SSO_SERVER/shared/SSO/http%3a%2f%2SERVER_HOST/page%3dsessionID=123456" rel="nofollow noreferrer">http://SSO_SERVER/shared/SSO/http%3a%2f%2SERVER_HOST/page%3dsessionID=123456</a>
  resp: 400 not found :(</li>
  </ol>
  
  <p>At the step 2, redirect location in server response start with "/" not with "http://", so at the step 3 it connects to the wrong host.</p>
  
  <p>Why at the step 2, I got a different location in server response according the request belongs to browser or to JSoup?</p>
  
  <p>I set JSoup request the same headers of browser request:</p>
  
  <pre><code>Response response = Jsoup.connect(link) 
                      .userAgent("Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36")
                      .header("Accept","text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8") 
                      .header("Accept-Encoding", "gzip, deflate, sdch") 
                      .header("Accept-Language", "it,en-US;q=0.8,en;q=0.6")
                      .header("Upgrade-Insecure-Requests", "1")
                      .method(Method.GET)
                      .followRedirects(true).execute();
  </code></pre>