calculate content-length off a buffer, pass the buffer to our http client