instructions about setting content-length to length of buffer