This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Operating system: Windows NT | |
10.0.19045 6456 | |
CPU: x86 | |
GenuineIntel family 6 model 63 stepping 2 | |
12 CPUs | |
GPU: UNKNOWN | |
Crash reason: EXCEPTION_ACCESS_VIOLATION_READ | |
Crash address: 0x8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static string URL = "https://x.x.x.x:8848/xmlrpc/"; | |
static string User = "username"; | |
static string Password = "password"; | |
static string RequestTemplate = "<?xml version=\"1.0\"?><methodCall><methodName>remoteEnableRule</methodName><params><param><value><string>{0}</string></value></param><param><value><boolean>{1}</boolean></value></param></params></methodCall>"; | |
public static bool ControlRule(string RuleName, bool Enabled) | |
{ | |
// NB this method does not return a valid response - tested with invalid rule names and it still comes back as ok | |
// can only catch exceptions |