Search results

  1. A

    Correct api authorization

    Right now I'm logged in this way. function reqCam($url, $code = false) { $ch = curl_init($url); curl_setopt_array($ch, [CURLOPT_USERPWD => "admin:password", CURLOPT_CONNECTTIMEOUT => 15, CURLOPT_RETURNTRANSFER => 1, CURLOPT_HTTPAUTH=>CURLAUTH_ANY]); $res = curl_exec($ch); if...
  2. A

    For what reason might the camera return the error "Invalid session in request data!"?

    The problem is that the error occurs intermittently I have a Dahua HDW2230TP-AS-0280B camera. I back up the video to my server every 10 minutes. The request looks like this: # step 1. curl request to create a task (id) $task = reqCam("$urlcam/cgi-bin/mediaFileFind.cgi?action=factory.create")...
Top