What could be causes of the page not loading? I'm currently sending a request to my bot which sends me a response back but somehow, if the bot is online and working, the page doesn't load. Is there a way to get the error? I have a cPanel and display_errors is 1. Any other ideas?
This is one of my requests:
function getData($Id) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,"http://IPAdress:8000/Data/".$Id);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
$server_output = curl_exec($ch);
curl_close ($ch);
return $server_output;
}