[Icecast] ACCESSING STATS
un at aporee.org
Fri Dec 31 08:27:39 UTC 2021
/* url, eg: http://127.0.0.1:8000/admin/viewxml.xsl?mount=/yourmount */
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_USERPWD, ICECAST_LOGIN);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_TIMEOUT, 5);
$result = curl_exec($ch);
$xml = new SimpleXMLElement($result);
$listeners = $xml->LISTENERS->LISTENER;
Am 30.12.21 um 23:22 schrieb Richard Bartholomew:
> I am using Icecast 2.4.4 and can access the list of clients with
> <domain.com>:port/admin/listclients?mount=<stream> and supplying the
> username and password.
> However, I would like to be able to access this page programmatically
> using either python or php so that I can automate some tasks but can't
> find a way of providing the username and password.
> Is there a way, please, of being able to do this so that the login
> page can be circumvented?
> Thanks for any help.
> Richard Bartholomew
> Icecast mailing list
> Icecast at xiph.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Icecast