【问题标题】:HTTP/1.1 Post to D-Link CameraHTTP/1.1 发布到 D-Link 相机
【发布时间】:2017-07-27 04:16:34
【问题描述】:

我正在尝试将 HTTP POST 命令直接用于 D-Link DCS-932L 摄像机(如果有帮助,我在 F/W 1.12 上有一台摄像机,在 1.14 上有另一台摄像机)。我不断收到 404 File Not Found 错误。

运行 Fiddler,我在浏览器中开启了动作,看到了以下请求:

POST /setSystemMotion HTTP/1.1

语法是

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

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

<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 文件夹。我很乐意提供更多详细信息,但任何人都可以阐明可能导致这种变化的原因吗?

谢谢!

【问题讨论】:

    标签: http post http-status-code-404


    【解决方案1】:

    我也有同样的问题。 使用来自以下论坛的 curl 命令解决

    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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-01-16
      • 1970-01-01
      • 2018-01-17
      • 1970-01-01
      • 1970-01-01
      • 2012-10-12
      • 2010-10-24
      相关资源
      最近更新 更多