Calling
http://manage2.cpanel.net/XMLlicenseInfo.cgi in a browser should produce output similar to the following:
<XMLlicenseInfo reason="OK" status="1" version="0.5">
<licenses name="L0001" adddate="1246989023" distro=""
envtype="" expiredon="" expirereason="" groupid="000001"
hostname="" ip="127.0.0.1" os="" osver="" packageid="123"
status="1" updateexpiretime="0" version=""/>
</XMLlicenseInfo>
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:
- JSON —
http://manage2.cpanel.net/XMLlicenseInfo.cgi?output=json&
- YAML —
http://manage2.cpanel.net/XMLlicenseInfo.cgi?output=yaml&
For more information about each of these output types, visit our
Choosing an Output Type documentation.