I use cURL / file_get_contents
very often to get a page's source code.
However, there is one website where this is not working for me.
Here is the code:
<?php
$c = curl_init('https://plus.nl');
curl_setopt($c, CURLOPT_RETURNTRANSFER, true);
curl_setopt($c, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($c, CURLOPT_POST, true);
//curl_setopt(... other options you want...)
$html = curl_exec($c);
if (curl_error($c))
die(curl_error($c));
// Get the status code
$status = curl_getinfo($c, CURLINFO_HTTP_CODE);
curl_close($c);
echo $html;
?>
In my browser, it just keeps loading. When I try any other website, it works instantly. What's up with this website that it does not work?