I have a ip cam and I use Get method to switch on the alarm.
When I use browser everything is ok
http://da***.com:808/set_alarm.cgi?user=***&pwd=***&motion_armed=1"
If a try to use this php file I always obtain "504 gateway time out"
<?php
function httpGet($url)
{
$ch = curl_init();
curl_setopt($ch,CURLOPT_URL,$url);
$output=curl_exec($ch);
curl_close($ch);
return $output;
}
echo httpGet("http://da***.com:808/set_alarm.cgi?user=***&pwd=***&motion_armed=1");
?>
Can someone help me?
Thanks