Added functionality to include a body with the request and to set the X-HTTP-Method header.