Hello, I have a problem with node HTTP REQUEST.
I have an API with a Dahua camera which allows me to know the number of people in an area.
http://"ipcam"/cgi-bin/videoStatServer.cgi?action=attach&channel=1&heartbeat=2
When I do in a command prompt, it works, I get some information back.
curl --digest -u "user":"pw" -s "http://"ipcam"/cgi-bin/videoStatServer.cgi?action=attach&channel=1&heartbeat=2"
When I use the HTTP REQUEST node, by filling in the authentication digest information, the node displays request then "no response from server". The request is a long connection and must remain open with no end time. Could you help me ?
I need to retrieve the response message to do my analysis in node red for info the response looks like this:
--myboundary
Content-Type: text/plain
Content-Length: 589summary.AreaID=1
summary.Channel=0
summary.EnteredSubtotal.Hour=0
summary.EnteredSubtotal.Today=0
summary.EnteredSubtotal.Total=0
summary.EnteredSubtotal.TotalInTimeSection=0
summary.ExitedSubtotal.Hour=0
summary.ExitedSubtotal.Today=0
summary.ExitedSubtotal.Total=0
summary.ExitedSubtotal.TotalInTimeSection=0
summary.InsideSubtotal.ManStayStat[0].EnterTime=2024-07-16 08:36:03
summary.InsideSubtotal.ManStayStat[0].ExitTime=2024-07-16 08:54:11
summary.InsideSubtotal.Total=0
summary.PlanId=0
summary.PtzPresetId=0
summary.RuleName=ManNumDetection
summary.UTC=1721120040--myboundary
Content-Type: text/plain
Content-Length:9Heartbeat
--myboundary
Content-Type: text/plain
Content-Length: 452summary.AreaID=1
summary.Channel=0
summary.EnteredSubtotal.Hour=0
summary.EnteredSubtotal.Today=0
summary.EnteredSubtotal.Total=0
summary.EnteredSubtotal.TotalInTimeSection=0
summary.ExitedSubtotal.Hour=0
summary.ExitedSubtotal.Today=0
summary.ExitedSubtotal.Total=0
summary.ExitedSubtotal.TotalInTimeSection=0
summary.InsideSubtotal.Total=1
summary.PlanId=0
summary.PtzPresetId=0
summary.RuleName=ManNumDetection
summary.UTC=1721120041--myboundary
Content-Type: text/plain
Content-Length:9Heartbeat