opening a http session to a device and passing xml data to perform operation like get information from the device
our requirement is, to open a http session to a device(https://192.168.75.1/...) and passing xml data to perform operation like get information from the device
eg: Adding user to device
https://192.168.75.1/scgi-bin/platform-xml.cgi?sessionId=$sessionId&firstname="<DeviceConfiguration><userAdd><userName>nmanglik</userName><firstName>Nitin</firstName><lastName>Manglik</lastName><userType>3</userType><groupName>SSLVPN<开发者_Go百科/groupName><password>cisco123</password><userTimeOut>10</userTimeOut></userAdd></DeviceConfiguration>"
Make a call using the curl functions in PHP. http://php.net/manual/en/book.curl.php They will allow you to do so from the server, and pass data, if you set appropriate options (the CURL library is quite large and complete).
精彩评论