Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new Ajax.Request("http://192.168.1.254/authenticate?username=admin&password=64D1137E",
- {
- method: 'POST',
- headers: { "Content-Type": "application/json" }
- onFailure: function(transport) {
- },
- onSuccess: function(transport) {
- new Ajax.Request("http://192.168.1.254/sysbus/NMC:reboot",
- {
- method: 'POST',
- parameters: {},
- headers: { "Content-Type": "application/json", "X-Context": transport.data.contextID }
- onFailure: function(transport) {
- },
- onSuccess: function(transport) {
- }
- });
- }
- });
Add Comment
Please, Sign In to add comment