<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>If you use Python, for instance, you can use the requests module
and then supply the username/password using the auth dict:</p>
<p>r = requests.get(URL, auth=(username, password))</p>
<p>--<br>
Marius</p>
<div class="moz-cite-prefix">On 30.12.2021 23:22, Richard
Bartholomew wrote:<br>
</div>
<blockquote type="cite"
cite="mid:034d01d7fdcb$ac89f630$059de290$@gmail.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<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="moz-mime-attachment-header"></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>