Set the content-length so we can avoid using a chunked encoding in the body

Signed-off-by: David Scott <dave.scott@eu.citrix.com>