handle chunked transfer encoding

This involves fetching more and more chunks depending on the chunk
size field every chunk starts with.