2017-03-07 56 views
0

我想直接使用HTTP POST命令到D-Link DCS-932L摄像头(我有一个摄像头在F/W 1.12和另一个在1.14上,如果有帮助的话) 。我不断收到404 File Not Found错误。HTTP/1.1发布到D-Link摄像头

跑提琴手,我打开浏览器动作和表现在以下几个要求:

POST /setSystemMotion HTTP/1.1 

语法是

ReplySuccessPage=motion.htm&ReplyErrorPage=motion.htm&MotionDetectionEnable=1&MotionDetectionScheduleDay=0&MotionDetectionScheduleMode=0&MotionDetectionSensitivity=45&ConfigSystemMotion=Save 

如果我尝试打开运动使用HTTP POST命令通过Chrome扩展邮递员使用完全相同的请求和语法我得到

<html><body><h2>Error: File Not Found</h2> 
<p>getfile: Cannot open URL(/etc_ro/web/setform/setSystemMotion,No such file or directory)</p></body></html> 

看来相机的服务器已决定将我的./setSystemMotion路由到此./etc_ro/web/setform文件夹。我很乐意提供更多的细节,但是有谁能够对可能导致这种变化的原因有所了解?

谢谢!

回答

0

我有同样的问题。 从下方论坛

curl "http://<IP>/setSystemMotion" -H "Host: <IP>" \ 
    -H "Referer: http://<IP>/setSystemMotion" -H "Authorization: Basic <AuthCode>" \ 
    -H "Connection: keep-alive" -H "Upgrade-Insecure-Requests: 1" \ 
    --data "ReplySuccessPage=motion.htm&ReplyErrorPage=motion.htm&MotionDetectionEnable=1&MotionDetectionScheduleDay=127&MotionDetectionScheduleMode=1&MotionDetectionScheduleTimeStart=07"%"3A10"%"3A00&MotionDetectionScheduleTimeStop=18"%"3A50"%"3A00&MotionDetectionSensitivity=70&ConfigSystemMotion=Save" 

https://www.developpez.net/forums/d1424172/systemes/hardware/achat-conseils/peripheriques/camera-ip-commandes-url-api-dlink-dcs-932l/#post8858654

采取这一curl命令解析