<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body>
    <p>check php/curl/simplexml:</p>
    <p>/* url, eg: 
      <a class="moz-txt-link-freetext" href="http://127.0.0.1:8000/admin/viewxml.xsl?mount=/yourmount">http://127.0.0.1:8000/admin/viewxml.xsl?mount=/yourmount</a> */<br>
    </p>
    <p>$ch = curl_init();<br>
      curl_setopt($ch, CURLOPT_URL, $url);<br>
      curl_setopt($ch, CURLOPT_USERPWD, ICECAST_LOGIN);<br>
      curl_setopt($ch, CURLOPT_HEADER, 0);<br>
      curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);<br>
      curl_setopt($ch, CURLOPT_FOLLOWLOCATION,0);<br>
      curl_setopt($ch, CURLOPT_TIMEOUT, 5);<br>
    </p>
    <p>$result = curl_exec($ch);<br>
      curl_close($ch);<br>
    </p>
    <p>if($result) {<br>
    </p>
    <p>try {<br>
           $xml = new SimpleXMLElement($result);<br>
           $listeners = $xml->LISTENERS->LISTENER;<br>
    </p>
    <div class="moz-cite-prefix">...</div>
    <div class="moz-cite-prefix">}<br>
    </div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">Am 30.12.21 um 23:22 schrieb Richard
      Bartholomew:<br>
    </div>
    <blockquote type="cite"
      cite="mid:034d01d7fdcb$ac89f630$059de290$@gmail.com">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <style>@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}div.WordSection1
        {page:WordSection1;}</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><font size="2" face="Calibri"><span
              style="font-size:11.0pt">Hi,<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font size="2" face="Calibri"><span
              style="font-size:11.0pt"><o:p> </o:p></span></font></p>
        <p class="MsoNormal"><font size="2" face="Calibri"><span
              style="font-size:11.0pt">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.<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font size="2" face="Calibri"><span
              style="font-size:11.0pt"><o:p> </o:p></span></font></p>
        <p class="MsoNormal"><font size="2" face="Calibri"><span
              style="font-size:11.0pt">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.<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font size="2" face="Calibri"><span
              style="font-size:11.0pt"><o:p> </o:p></span></font></p>
        <p class="MsoNormal"><font size="2" face="Calibri"><span
              style="font-size:11.0pt">Is there a way, please, of being
              able to do this so that the login page can be
              circumvented?<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font size="2" face="Calibri"><span
              style="font-size:11.0pt"><o:p> </o:p></span></font></p>
        <p class="MsoNormal"><font size="2" face="Calibri"><span
              style="font-size:11.0pt">Thanks for any help.<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font size="2" face="Calibri"><span
              style="font-size:11.0pt"><o:p> </o:p></span></font></p>
        <p class="MsoNormal"><font size="2" face="Calibri"><span
              style="font-size:11.0pt">Regards<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font size="2" face="Calibri"><span
              style="font-size:11.0pt">Richard Bartholomew<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font size="2" face="Calibri"><span
              style="font-size:11.0pt"><o:p> </o:p></span></font></p>
        <p class="MsoNormal"><font size="2" face="Calibri"><span
              style="font-size:11.0pt"><o:p> </o:p></span></font></p>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Icecast mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Icecast@xiph.org">Icecast@xiph.org</a>
<a class="moz-txt-link-freetext" href="http://lists.xiph.org/mailman/listinfo/icecast">http://lists.xiph.org/mailman/listinfo/icecast</a>
</pre>
    </blockquote>
  </body>
</html>