Skip to content

Instantly share code, notes, and snippets.

@hdo
Created December 4, 2014 07:21
Show Gist options
  • Save hdo/b022b3e5c97060e5d5ca to your computer and use it in GitHub Desktop.
Save hdo/b022b3e5c97060e5d5ca to your computer and use it in GitHub Desktop.
Event notification on Dahua Security Cams
Wichtig ist die Authentifizierung, sonst wird die Session sofort wieder abgebrochen!
TELNET:
GET /cgi-bin/eventManager.cgi?action=attach&codes=[VideoMotion,AlarmLocal] HTTP/1.0
User-Agent: Synology Surveillance Station
Authorization: Basic YWRtaW46YWRtaW4=
HTTP/1.0 200 OK
Cache-Control: no-cache
Pragma: no-cache
Expires: Thu, 01 Dec 2099 16:00:00 GMT
Connection: close
Content-Type: multipart/x-mixed-replace; boundary=myboundary
-- myboundary
Content-Type: text/plain
Content-Length:37
Code=VideoMotion;action=Start;index=0
-- myboundary
Content-Type: text/plain
Content-Length:36
Code=VideoMotion;action=Stop;index=0
-- myboundary
Content-Type: text/plain
Content-Length:37
Code=VideoMotion;action=Start;index=0
-- myboundary
Content-Type: text/plain
Content-Length:36
Code=VideoMotion;action=Stop;index=0
-- myboundary
Content-Type: text/plain
Content-Length:37
Code=VideoMotion;action=Start;index=0
-- myboundary
Content-Type: text/plain
Content-Length:36
Code=VideoMotion;action=Stop;index=0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment