If all you need is a way to grab a document given its URL, using HTTP, you
do not need to waste time coding support for byte ranges, chunked encoding,
or 95% of the stuff described in that document.
That's incorrect if the URL is arbitrary, of course. You *could* leave
out all of those feature if, say, you had full control over the HTTP
server, or you were able to safely make assumptions about how the
server will deliver a response (or if it does not matter if those
assumptions don't hold). Even then, grabbing curl and using it gives
you a full featured HTTP client in *less* than a few dozen lines of
code, and you don't have to have any knowledge of networking, etc, to
do it (e.g. perhaps *you* don't have a problem putting that together,
but there is a level of knowledge required when reinventing wheels
that isn't required when using code that somebody else is responsible
for). That's certainly more desirable than a client you've hacked
together, and probably poorly in haste.
In any case, the OP was specifically looking for a library to solve
the problem, advising a programmer to use their own poor
reimplementation of something that's been done dozens of times already
and maintained by a community of other programmers is never good
advice.
Jason