title: jsoup connect parameter
body: <p>I access a webpage by passing the session id and url and output is a HTML response.
  I want to use jSoup to parse this response and get the tag elements. 
  I see the examples in Jsoup takes a String for establishing connection. How do i proceed.</p>
  
  <p>pseudo code: </p>
  
  <p>I tried the above method and got this exception</p>
  
  <pre><code>java.io.IOException: 401 error loading URL http://www.abc.com/index
      at org.jsoup.helper.HttpConnection$Response.execute(HttpConnection.java:387)
      at org.jsoup.helper.HttpConnection$Response.execute(HttpConnection.java:364)
      at org.jsoup.helper.HttpConnection.execute(HttpConnection.java:143)
      at org.jsoup.helper.HttpConnection.get(HttpConnection.java:132)
  </code></pre>
  
  <p>Basically the <code>entity.getContent()</code> has the HTML response which has to be passed as a String to the connect method. But it doesn't work. </p>