I have been trying to command this Dahua Camara trough the iViewer.
Request Method:POST
Status Code:200 OK
Request Headersview parsed
POST /RPC2 HTTP/1.1
Host: 10.40.7.102
Connection: keep-alive
Content-Length: 136
X-Request: JSON
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36
Content-type: application/x-www-form-urlencoded; charset=UTF-8
Accept: text/javascript, text/html, application/xml, text/xml, */*
X-Requested-With: XMLHttpRequest
Accept-Encoding: gzip, deflate
Accept-Language: es-ES,es;q=0.8,en;q=0.6
Cookie: DHLangCookie30=%2Fcustom_lang%2FEnglish.txt; DhWebClientSessionID=1259773813; DhWebCookie=%7B%22username%22%3A%22user%22%2C%22pswd%22%3A%22%22%2C%22talktype%22%3A%221%22%2C%22logintype%22%3A%220%22%2C%22openall%22%3A%221%22%7D
Form Dataview sourceview URL encoded
{"method" : "ptz.start", "session" : 1259773813,"params" : {"channel" : 0, "code" : "Down","arg1" : 5,"arg2" : 0,"arg3" : 0},"id" : 119}:
Response Headersview source
CONNECTION:close
CONTENT-LENGTH:73
So the problem is that it sends the request and gets the Status 200 correctly, headers UNDIFINED, and in the body it receives a full html web page. But the camera dont moves down as it should...