| View previous topic :: View next topic |
| Author |
Message |
cvyz
Joined: 14 Nov 2009 Posts: 2
|
Posted: Sat Nov 14, 2009 4:51 pm Post subject: multiple mounts and listener transferring |
|
|
Hello,
I would like some help on the following matter.
Two people connect to the same icecast server. Each one broadcasting on a different mount.
For example,
DJ A broadcasts on /dja.ogg and DJ B broadcasts on /djb.ogg
I would like to have a button on my web page, that when pressed it transfers all the active
listeners from mount dja.ogg to mount djb.ogg.
I know that the http request should look something like
http://server:port/admin/moveclients.xsl?mount=/dja.ogg&destination=/djb.ogg
but I keep on getting a popup window requesting username/password.
How can i pass icecast's admin-user and admin-password info to that http request?
I'm using Flex action script, but I wouldn't mind using a php script instead.
Thanx,
Christos
PS.1 I already tried http://username:password@server:port/admin/moveclients.xsl?mount=/dja.ogg&destination=/djb.ogg
to no avail |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Sat Nov 14, 2009 8:18 pm Post subject: |
|
|
You will need to pass a user/pass or else anyone could do the moving. The URL you described is the general way to specify that as a single URL but that will translate to a header being sent as part of the request. If the system you are using cannot handle http basic auth then you'll have to create the header yourself and send it.
karl. |
|
| Back to top |
|
 |
cvyz
Joined: 14 Nov 2009 Posts: 2
|
Posted: Sat Nov 14, 2009 9:08 pm Post subject: |
|
|
what should the header look like?
something like this???
"Authentication", "Basic myadmin:mypassword"
the URLRequestHeader class in flex, gets 2 params. name and value.
forgive me, but I'm a major noob to internet programming. |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Sat Nov 14, 2009 10:09 pm Post subject: |
|
|
the http RFC has the details. You could try to use curl or wget on the same url which allows for the user/pass to be supplied, add on the verbose flag to see the headers.
karl. |
|
| Back to top |
|
 |
|