CURL_EXEC echo's out the result automatically, which means the echo on line 34 was just printing a boolean value.