title: Jsoup java.io.EOFException in android
body: <p>By using jsoup I am trying to get text from a link. But it always give me the end of the file error: <code>java.io.EOFException</code> in android. I have also tried jericho html parser but both of them are sending same error. Here is my code:</p>
  
  <pre><code>private class JsoupAsyncTask extends AsyncTask&lt;Void, Void, Void&gt; {
  
          @Override
          protected void onPreExecute() {
              super.onPreExecute();
          }
  
          @Override
          protected Void doInBackground(Void... params) {
              try {
                  doc = Jsoup.connect("http://www.azlyrics.com/lyrics/adele/hello.html").get();
                  htmlText = doc.body().text();
                  Log.e("html text", "working");
              } catch (IOException e) {
                  Log.e("html text", e.toString());
                  e.printStackTrace();
              }
              return null;
          }
  
          @Override
          protected void onPostExecute(Void result) {
              lyricsText.setText(htmlText);
          }
      }
  </code></pre>
  
  <p>I dont know why the error is happening. Please help me if anyone have any idea about it.</p>