support keep alives
properly set content-length on requests. also support chunked request input