problem with CMD_API_IP_CONFIG

pppplus

Verified User
Joined
Dec 19, 2008
Messages
526
Hi

I read : http://www.directadmin.com/features.php?id=849
If I understand, using CMD_API_IP_CONFIG can list IPs on server.

I use :
Code:
$sock->query('/CMD_API_IP_CONFIG');
	$result = $sock->fetch_parsed_body();
	print_r($result);
But, I've this answer :
Code:
Array
(
    [error] => 1
    [text] => result
    [details] => 
)

Maybe I misundestood.
So, I just want the list of IP on server, their status, and owner of these IPs.

Thanks for your help
 
Hello,

Are you donig a GET or a POST?

To grab the list of IPs, you'd need to use GET.
If you're using POST, DA would be expecting more data, which doesn't look like it's being passed.

John
 
Perfect !
I'm sorry, I have put $sock->set_method to POST, and I forgot !
So I've nothing with get.

Now, I have informations
Thanks for your help.
 
Back
Top