|
Posted by Ulf Kadner on 08/12/07 18:29
Stefano wrote:
> I have to send a restart command to an IP camera from a PHP script. The
> command is as follow:
>
> http://192.168.1.5/axis-cgi/admin/restart.cgi
>
> $headers.="Authorization: Basic root:password_root".$br.$br;
Dont know if this is the right header.
I use allways PHPs CURL extension. It works fine.
e.g.: curl_setopt($curl, CURLOPT_HTTPAUTH, 'username:password');
http://php.net/curl
It requires also an min. PHP version 5.*
PHP 4.4.2+ supports it to but official documentation says "avialable for
version 5 and above". May it helps you.
So long, Ulf
--
_,
_(_p> Ulf [Kado] Kadner
\<_)
^^
Navigation:
[Reply to this message]
|