Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

multiple mounts and listener transferring

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server
View previous topic :: View next topic  
Author Message
cvyz



Joined: 14 Nov 2009
Posts: 2

PostPosted: Sat Nov 14, 2009 4:51 pm    Post subject: multiple mounts and listener transferring Reply with quote

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
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Sat Nov 14, 2009 8:18 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
cvyz



Joined: 14 Nov 2009
Posts: 2

PostPosted: Sat Nov 14, 2009 9:08 pm    Post subject: Reply with quote

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
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Sat Nov 14, 2009 10:09 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
subRebel style by ktauber