Such an outcome can also occur in case of SSL errors.
You can debug it by using the answer provided by @Ruslan Novikov above and then using:
var_dump(curl_error($ch));