Use specified Content-Length if provided

This change allows to test how endpoints deal with invalid POST (advertising more or less bytes than actually sent, etc).