I'm trying to run the following code to get the html of a web page:
$html = file_get_contents("https://www.bet365.com");
But I get these warnings:
PHP Warning: file_get_contents(): SSL:
PHP Warning: file_get_contents(https://www.bet365.com): failed to open stream: HTTP request failed!
I've tried setting stream context with different headers, but cannot find a workig solution. What might be the reason for this warning and how can I solve it.