127.0.0.0
0001
127.0.0.1
OK
1 — The license has been successfully transferred.
0 — The request has failed.
-1 — The license has not been transferred.
http://manage2.cpanel.net/XMLtransfer.cgi?packageid=2301;oldip=127.0.0.0;newip=127.0.0.1 in a web browser will produce XML output similar to the following:
Calling the function using the URL above will return XML data by default. To change the output format that will be returned, use either of the following URLs:<XMLtransfer linkname="Verify License Information" linkurl="http://verify.cpanel.net/?ip=127.0.0.1" newip="127.0.0.1" oldip="127.0.0.0" reason="Transferred ONE-YEAR-ENKOMPASS license 127.0.0.0 to 127.0.0.1 by testinguser" status="1" version="0.1" />
http://manage2.cpanel.net/XMLtransfer.cgi?output=json&packageid=2301;oldip=127.0.0.0;newip=127.0.0.1
http://manage2.cpanel.net/XMLtransfer.cgi?output=yaml&packageid=2301;oldip=127.0.0.0;newip=127.0.0.1
XMLtransfer.cgi. You can use this module to pass input variables to a Manage2 API function.
use cPanelLicensing;
my $cpl = cPanelLicensing->new(user => $user, pass => $pass);
$cpl->changeip(
packageid => 2301,
oldip => "127.0.0.0",
newip => "127.0.0.1");
You can learn more about using a Perl module to call API functions.
<?php
include("cpl.inc.php");
$cpl = new cPanelLicensing($user, $pass);
$cpl->changeip(array(
"packageid" => 2301,
"oldip" => "127.0.0.0",
"newip" => "127.0.0.1"));
?>
You can learn more about using a PHP class to call API functions.
Copyright © cPanel 2000–2011.