开发者

opening a http session to a device and passing xml data to perform operation like get information from the device

开发者 https://www.devze.com 2023-01-01 00:37 出处:网络
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

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).

0

精彩评论

暂无评论...
验证码 换一张
取 消