title: JSoup getting content type then data
body: <p>so currently I'm retrieving the data from a url using the following code </p>
  
  <pre><code>Document doc = Jsoup.connect(url).get();
  </code></pre>
  
  <p>Before I fetch the data I've decided I want to get the content type, so I do that using the following.</p>
  
  <pre><code>Connection.Response res = Jsoup.connect(url).timeout(10*1000).execute();
  String contentType = res.contentType(); 
  </code></pre>
  
  <p>Now I'm wondering, is this making 2 separate connections? Is this not efficient? Is there a way for me to get the content type and the document data in 1 single connection?</p>
  
  <p>Thanks</p>