• October 23, 2017, 10:16:35 AM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

This Forum Beta is ONLY for registered owners of D-Link products in the USA for which we have created boards at this time.

Author Topic: curl motion error  (Read 240 times)

morpheusboard

  • Level 1 Member
  • *
  • Posts: 1
curl motion error
« on: July 21, 2017, 11:32:30 AM »

hi,

i have an issue to enable or disable motion by curl

i saw a person who used http://username:password@cameraIP:port/config/motion.cgi?enable=yes

this command doesn't work with me

[root@master 192.168.1.20]# curl  http://admin:mypasswd@192.168.1.20:80/config/motion.cgi?enable=yes
<html><body><h1>The request is forbidden.</h1></body></html>

my hardware version

Version du microprogramme   2.14.04 (2016-09-09)
Hardware Version   B
Version Agent   2.1.0-b41

it's not a authentication problem , if i try this command , i have a result

[root@master 192.168.1.20]# curl http://admin:mypasswd@192.168.1.20:80/motion.cgi
MotionDetectionEnable=0
MotionDetectionBlockSet=1111111111111111111111111
MotionDetectionSensitivity=60
MotionDetectionScheduleMode=0
MotionDetectionScheduleDay=0
MotionDetectionScheduleTimeStart=00:00:00
MotionDetectionScheduleTimeStop=00:00:00

without authentication

[root@master 192.168.1.20]# curl http://192.168.1.20:80/motion.cgi
<html><body><h2>Error: Authorization Required</h2>
<p>Authentication was requested</p></body></html>


does the folder named config really exists or i missed something ?

thx for your help.


Logged