Sending an API request to lock the server works just fine using the following POST headers (Variable values have been changed for the example).
PHP Code $post = array();
$post['server_name'] = "TEST SERVER";
$post['locked'] = 1;
$post['serid'] = 12;
$post['ip'] = "xx.xx.xx.xx";
$post['sgid'] = 3;
However, It will not UNLOCK the server when running these headers.
PHP Code $post = array();
$post['server_name'] = "TEST SERVER";
$post['locked'] = 0;
$post['serid'] = 12;
$post['ip'] = "xx.xx.xx.xx";
$post['sgid'] = 3;
We're literally just changing the "locked" value to 0, The API says that it has succeeded, but does not update the locked value.
|