Setting content length if using HTTP/1.0. When using HTTP/1.1 chunked transfer encoding is used.