thomasbr Posted November 18, 2010 Share Posted November 18, 2010 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? Link to comment https://forums.phpfreaks.com/topic/219124-axis-210a-network-camera-connect-through-curl-and-php/ Share on other sites More sharing options...
papaface Posted November 18, 2010 Share Posted November 18, 2010 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); ?> Link to comment https://forums.phpfreaks.com/topic/219124-axis-210a-network-camera-connect-through-curl-and-php/#findComment-1136386 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.