sde
Verified User
I'm using the lastest version of the PHP HTTPSocket class from within a plugin. The following code will work if I pass a valid password argument, but when don't, I get an 'unathorized' error.
From what I understand, I should be able to use this command, as a user, without sending a password if I am using it from within an installed DA plugin.
Code:
$sock = new HTTPSocket;
$sock->connect($_SERVER['SERVER_ADDR'], $_SERVER['SERVER_PORT']);
$sock->set_login($_SERVER['USERNAME']);
$sock->query('/CMD_API_SHOW_USER_CONFIG');
$result = $sock->fetch_result();
From what I understand, I should be able to use this command, as a user, without sending a password if I am using it from within an installed DA plugin.