Jump to content

AXIS 210A Network Camera - Connect through CURL and PHP


thomasbr

Recommended Posts

Hello. I am trying to connect to a AXIS 210A Network Camera with PHP and CURL.

The reason why, is to log in to only one webpage, and then show all the webcams.

 

Here is my code:

$url = "http://xx.xx.xx.xx:1500/";
$ch = curl_init();    
curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_URL, $url); 
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
curl_setopt($ch, CURLOPT_USERPWD, "user:pass"); 
$result = curl_exec($ch); 
curl_close($ch); 
?>

 

I only get a white screen? Any ideas anyone?

 

 

Not sure, but what does this produce?

$url = "http://xx.xx.xx.xx:1500/";
$ch = curl_init();    
curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_URL, $url); 
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
curl_setopt($ch, CURLOPT_USERPWD, "user:pass"); 
$result = curl_exec($ch); 
echo $result;
curl_close($ch); 
?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.