I've rolled my own code to retrieve data from remote URLs using a HttpURLConnection. First I had to write custom code to handle gzipped content encoding, now I am encountering web servers that are serving up RSS feeds with a chunked Transfer-Encoding. I'm finding myself reimplementing a bunch of stuff that I'm sure has already been done.
I'm sure there is some library that will automatically handle the various ways that data can be returned from a web server and just give me an InputStream, can anyone recommend one (must be LGPL or similar license)?
Ideally I'm looking for a library that is currently maintained and which has a modern well-designed API.
In some cases I won't know the Content-type that will be returned in advance, and so may need to handle what is returned differently depending on this.