Set Content-Length header with post request