Add transfer encoding header to test harness

Python's http.client will close the socket fileobj early if there is no
content length or chunked transfer encoding header. If this happens we
lose some data which was buffered on the fileobj.
Read stream chunks with http.client