2017-03-07 54 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命令解析