I want to add an (extra) IP to the server using the API but I cannot get this to work.
I use the following command as described at http://www.directadmin.com/features.php?id=673
/CMD_API_IP_MANAGER?action=add&ip=1.2.3.4&netmask=255.255.255.0
also tried:
/CMD_API_IP_MANAGER?action=add&add=Submit&ip=1.2.3.4&netmask=255.255.255.0¬ify=no
ofcourse 1.2.3.4 is not the ip i wish to add...
I do this by using the API script from:
* @author Phi1 'l0rdphi1' Stier <[email protected]>
* @package HTTPSocket
* @version 2.6
When I change the value set_method( $method = 'GET' ) in to set_method( $method = 'POST' ) i get an error of Cannot redeclare class httpsocket
When I do this I get the results back of the IP's and resellers etc on the server but the IP is not added.
So the connection to the server works but the IP is not added.
What do I wrong here?
I use the following command as described at http://www.directadmin.com/features.php?id=673
/CMD_API_IP_MANAGER?action=add&ip=1.2.3.4&netmask=255.255.255.0
also tried:
/CMD_API_IP_MANAGER?action=add&add=Submit&ip=1.2.3.4&netmask=255.255.255.0¬ify=no
ofcourse 1.2.3.4 is not the ip i wish to add...
I do this by using the API script from:
* @author Phi1 'l0rdphi1' Stier <[email protected]>
* @package HTTPSocket
* @version 2.6
When I change the value set_method( $method = 'GET' ) in to set_method( $method = 'POST' ) i get an error of Cannot redeclare class httpsocket
When I do this I get the results back of the IP's and resellers etc on the server but the IP is not added.
So the connection to the server works but the IP is not added.
What do I wrong here?