Guest User

rebootLivebox

a guest
Feb 23rd, 2016
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. new Ajax.Request("http://192.168.1.254/authenticate?username=admin&password=64D1137E",
  2. {
  3.     method: 'POST',
  4.     headers: { "Content-Type": "application/json" }
  5.     onFailure: function(transport) {
  6.     },
  7.     onSuccess: function(transport) {
  8.         new Ajax.Request("http://192.168.1.254/sysbus/NMC:reboot",
  9.         {
  10.             method: 'POST',
  11.             parameters: {},
  12.             headers: { "Content-Type": "application/json", "X-Context":   transport.data.contextID }
  13.             onFailure: function(transport) {
  14.             },
  15.             onSuccess: function(transport) {
  16.  
  17.              }
  18.         });
  19.      }
  20. });
Add Comment
Please, Sign In to add comment