01304 827609 info@use-ip.co.uk Find us

HTTP Command

Chetan

New Member
Messages
1
Points
1
HI,
I am using Hikvison NVR DS-9632NI-M8 Firmware version V 5.01 with PTZ camera DS-2DE4425IW-DE firmware V5.8
I want to move to the cameras different presets using the HTTP command, I am using the following command but gettin autohrization error
The command and response is pasted below, please help to solve this.

$ curl -X PUT "http://admin:abcd2468@192.168.1.12:80/ISAPI/PTZCtrl/channels/1/presets/2/goto"
<!DOCTYPE html>
<html><head><title>Document Error: Unauthorized</title></head>
<body><h2>Access Error: 401 -- Unauthorized</h2>
<p>Authentication Error</p>
</body>
</html>
 
Are you sending the curl command on the NVR or the camera itself? I struggled getting ISAPI commands working via the NVR and always go direct to camera.

But anyway, some older firmware you have to enable ISAPI integration, somewhere in settings under "HikVision Services" I think. Newer firmware I don't think there is a setting to enable or disable ISAPI but to do a curl command with the username/password on the URL you might have to set `System -> Security -> Authentication` to either `Basic` or `Digest/Basic`. Exactly what/where will again depend on firmware.

But instead of that, try using the -digest option of curl to pass the username/password instead of putting it in the URL e.g.
`curl --digest -u "admin:assword" -X PUT "http://192.168.1.12:80/ISAPI/PTZCtrl/channels/1/presets/2/goto"`

See here for some more info and a link to another post with more info:
 
Upvote 0
Back
Top