Guys,
I'm a new beginner on API for video system. Trying to configure codec through our own application and see HTTP can push the whole configuration with xml instead of sending different commands through SSH. But the doc says using http://ip/putxml and then gives example about XML file. But dumb question here: how do you invoke that XML with http://ip/putxml?
Thanks!
Lou
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I used formputxml with javascript
var xml = new XMLHttpRequest();
var url = "http://ip/formputxml?xmldoc="
xml.open("POST", url, false);
xml.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
var xmlcommand = '<Command><Camera><PositionSet command="True"><CameraId>1</CameraId><Pan>'+pan+'</Pan><Tilt>'+tilt+'</Tilt><Zoom>'+zoom+'</Zoom></PositionSet></Camera></Command>';
xml.send(xmlcommand);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Comments
0 comments
Please sign in to leave a comment.