I'm having problems with fetching data from URL. When I input URL in browser file normally gets downloaded to my computer, but when I try to access it in my code I get response FALSE, with no errors just bool(false) response. It's function for ICAL sync and 3 or 4 urls are fine but that one is just not getting data. Tried both with file_get_contents and with CURL. Here is CURL function:
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$data = curl_exec($ch);
curl_close($ch);
Here are some info about server:
PHP Version = 5.6.10-pl0
allow_url_fopen = On
OpenSSL support = enabled
And yeah file is on HTTPS server if that's maybe an issue. Thank you guys in advance.
curlhas an error code if the download didn't work. Please add this error codesslv3??? Ah.