Fixing #4641: Curl PUT request does not post request body

Using CURLOPT_CUSTOMREQUEST instead fixes this.