Hi Fred,
I am understand the requirements already a little bit better.
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.
But I have to do it with Javascript or JQuery. Therefore curl doesn't help
me.
I try to use Ajax for that, but something goes wrong.
If I do it without Autorization, I got a return message which says
'Authentication required'.
If I enable the Autorization it tells me only readyState: 0.
If I will find a solution, I will post it here.
Cheers
Von: Icecast [mailto:icecast-bounces at xiph.org] Im Auftrag von Fred Gleason
Gesendet: Mittwoch, 15. Februar 2023 16:57
An: Icecast streaming server user discussions
Betreff: Re: [Icecast] Send admin kill request to server
On Feb 14, 2023, at 13:24, HGAlt <hgalt at gmx.net> wrote:
I am a little bit confused!
<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
This is an example of the Icecast documentation for kill a client.
And this is a HTTP GET, which is send to the Icecast server.
You also wrote, that there are no user and pass for an API.
What I have to know, what does the Icecast server expect?
If there is no user and pass, how the server knows, that is a valid request.
You should be able to send this with proper HTTP authentication parameters
by using CURL. Something like:
curl -u admin:hackme
http://192.168.1.10:8000/admin/killclient?mount=/mystream.ogg
<http://192.168.1.10:8000/admin/killclient?mount=/mystream.ogg&id=21>
&id=21
This is different from encoding the parameters as if they were part of an
HTML form.
Cheers!
|---------------------------------------------------------------------|
| Frederick F. Gleason, Jr. | Chief Developer |
| | Paravel Systems |
|---------------------------------------------------------------------|
| A room without books is like a body without a soul. |
| |
| -- Cicero |
|---------------------------------------------------------------------|
--
Diese E-Mail wurde von Avast-Antivirussoftware auf Viren gepr?ft.
www.avast.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.xiph.org/pipermail/icecast/attachments/20230216/d14cdabc/attachment.htm>