You can test for the HTTP API by opening a web browser, and entering any URL from the HTTP API ... such as this:
Code:
http://192.168.0.xxx/cgi-bin/configManager.cgi?action=getConfig&name=Encode
Just replace 192.168.0.xxx with your camera's actual address. It should prompt you for login, and then once you log in, it should load a text-based list of the camera's current video/audio encoding configuration. If it does all of this, then the camera supports the dahua HTTP API.
To test for the PTZ api specifically, you can try the GotoPreset command:
Preset 1:
Code:
http://192.168.0.xxx/cgi-bin/ptz.cgi?action=start&channel=0&code=GotoPreset&arg1=0&arg2=1&arg3=0
Preset 2:
Code:
http://192.168.0.xxx/cgi-bin/ptz.cgi?action=start&channel=0&code=GotoPreset&arg1=0&arg2=2&arg3=0
Preset 3:
Code:
http://192.168.0.xxx/cgi-bin/ptz.cgi?action=start&channel=0&code=GotoPreset&arg1=0&arg2=3&arg3=0