Fixed curl call

Had to remove "curl_setopt($ch, CURLOPT_NOBODY, true);". Otherwise the request failed.

Added "CURLOPT_RETURNTRANSFER" to hide the output.