<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@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;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Menlo;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.apple-tab-span
        {mso-style-name:apple-tab-span;}
span.E-MailFormatvorlage18
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.E-MailFormatvorlage19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
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]--></head><body lang=DE link=blue vlink=purple style='word-wrap: break-word;-webkit-nbsp-mode: space;line-break:after-white-space'><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:black'>Hi everybody,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:black'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:black'>finally I found a solution!<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:black'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:black'>First, Icecast requires a Basic Authorization, which has to provide via a header.<br>But this can’t be done via JavaScript or JQuery, due the security features of the browsers.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:black'>For more detail information see <a href="https://stackoverflow.com/questions/75463305/difference-basic-authorization-between-postman-and-jquery-ajax/75493285#75493285">https://stackoverflow.com/questions/75463305/difference-basic-authorization-between-postman-and-jquery-ajax/75493285#75493285</a></span><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:black'>Thanks for help,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:black'>HGA <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Von:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Icecast [mailto:icecast-bounces@xiph.org] <b>Im Auftrag von </b>HGAlt<br><b>Gesendet:</b> Donnerstag, 16. Februar 2023 15:49<br><b>An:</b> 'Icecast streaming server user discussions'<br><b>Betreff:</b> Re: [Icecast] Send admin kill request to server<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Hi Fred,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=EN-US>I am understand the requirements already a little bit better.<br><br>What I have to Do is a HTTP GET with a Basic Authorization in the header. I have tested it with ‘Postman’ and it works fine with Icecast.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>But I have to do it with Javascript or JQuery. Therefore curl doesn’t help me.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>I try to use Ajax for that, but something goes wrong.<br>If I do it without Autorization, I got a return message which says 'Authentication required'.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>If I enable the Autorization it tells me only readyState: 0.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>If I will find a solution, I will post it here.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Cheers<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Von:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Icecast [mailto:icecast-bounces@xiph.org] <b>Im Auftrag von </b>Fred Gleason<br><b>Gesendet:</b> Mittwoch, 15. Februar 2023 16:57<br><b>An:</b> Icecast streaming server user discussions<br><b>Betreff:</b> Re: [Icecast] Send admin kill request to server<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>On Feb 14, 2023, at 13:24, HGAlt <<a href="mailto:hgalt@gmx.net">hgalt@gmx.net</a>> wrote:<o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></p><div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><div><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Helvetica","sans-serif"'>I am a little bit confused!<br><br></span><a href="http://192.168.1.10:8000/admin/killclient?mount=/mystream.ogg&id=21"><span style='font-size:9.0pt;font-family:"Helvetica","sans-serif"'>http://192.168.1.10:8000/admin/killclient?mount=/mystream.ogg&id=21</span></a><span style='font-size:9.0pt;font-family:"Helvetica","sans-serif"'><br><br>This is an example of the Icecast documentation for kill a client.<br>And this is a HTTP GET, which is send to the Icecast server.<br>You also wrote, that there are no user and pass for an API.<br><br>What I have to know, what does the Icecast server expect?<br>If there is no user and pass, how the server knows, that is a valid request.</span><o:p></o:p></p></div></blockquote></div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>You should be able to send this with proper HTTP authentication parameters by using CURL. Something like:<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><span class=apple-tab-span>            </span>curl -u admin:hackme <a href="http://192.168.1.10:8000/admin/killclient?mount=/mystream.ogg&id=21">http://192.168.1.10:8000/admin/killclient?mount=/mystream.ogg&id=21</a><o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>This is different from encoding the parameters as if they were part of an HTML form.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Cheers!<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><div><p class=MsoNormal><span style='font-size:8.5pt;font-family:Menlo'>|---------------------------------------------------------------------|<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:8.5pt;font-family:Menlo'>| Frederick F. Gleason, Jr. |             Chief Developer             |<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:8.5pt;font-family:Menlo'>|                           |             Paravel Systems             |<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:8.5pt;font-family:Menlo'>|---------------------------------------------------------------------|<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:8.5pt;font-family:Menlo'>|         A room without books is like a body without a soul.         |<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:8.5pt;font-family:Menlo'>|                                                                     |<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:8.5pt;font-family:Menlo'>|                                                         -- Cicero   |<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:8.5pt;font-family:Menlo'>|---------------------------------------------------------------------|<o:p></o:p></span></p></div></div><div><p class=MsoNormal style='margin-bottom:12.0pt'><o:p> </o:p></p></div><div id=DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2><p class=MsoNormal><o:p> </o:p></p><table class=MsoNormalTable border=1 cellspacing=3 cellpadding=0 style='border:none;border-top:solid #D3D4DE 1.0pt'><tr><td width=69 style='width:41.25pt;border:none;padding:9.75pt .75pt .75pt .75pt'><p class=MsoNormal><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank"><span style='text-decoration:none'><img border=0 width=46 height=29 id="_x0000_i1025" src="https://s-install.avcdn.net/ipm/preview/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif"></span></a><o:p></o:p></p></td><td width=588 style='width:352.5pt;border:none;padding:9.0pt .75pt .75pt .75pt'><p class=MsoNormal style='line-height:13.5pt'><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#41424E'>Virenfrei.<a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank"><span style='color:#4453EA'>www.avast.com</span></a><o:p></o:p></span></p></td></tr></table><p class=MsoNormal><o:p> </o:p></p></div></div></body></html>