The resource you're looking for is not at somogyivakok.hu but at www.somogyivakok.hu. So you can use the correct uri or instruct the script to follow redirects using the CURLOPT_FOLLOWLOCATION option as per the following example:
$ch = curl_init ("http://somogyivakok.hu/");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
$result = curl_exec($ch);
curl_close($ch);
Update:
Investigating further, despite the issue with CURLOPT_FOLLOWLOCATION, as curl_exec returned false there is also an issue with the server configuration and more precisely with httpd_can_network_connect.
Using CURLOPT_VERBOSE to debug the following is logged:
Immediate connect fail for 1.1.1.1: Permission denied
On this thread we've found the solution is to run the following command on the server shell:
sudo setsebool httpd_can_network_connect 1