Skip to content Skip to sidebar Skip to footer

Java.io.ioexception: Unexpected End Of Stream On Connection (android, Jsoup)

I am parsing some lyrics site, and i have error from the header. URL, that i give to it (for example): http://www.azlyrics.com/lyrics/linkinpark/intheend.html class GetLyrics exten

Solution 1:

One thing that I can see is that you are using a POST request instead of a GET to retrieve the document.

Just change

Documentdocument= Jsoup.connect(url).post();

to

Document document = Jsoup.connect(url).get();

Post a Comment for "Java.io.ioexception: Unexpected End Of Stream On Connection (android, Jsoup)"