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 

Wget HEAD request problem

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



Joined: 28 Nov 2008
Posts: 5

PostPosted: Fri Nov 27, 2009 5:50 pm    Post subject: Wget HEAD request problem Reply with quote

I`m currently writing a script to regularly check for new mount points on icecast2. But while using wget with the --spider switch (HEAD request), I`ve noticed the response from the server is always 400 Bad Request. This is the case for all urls used, even the index page.

For the script to work I`m looking for 200 OK which is expected. Is this a bug or is it normal behaviour for icecast. Also is there anything I can do about it ?

-

Alternatively I could use <on-connect> feature for the end result (start streamTranscoder when a source connects to a specific mount point) but it fails to start a bash script when the source connects. I`ve tested the script successfully under the same user that icecast runs.

Is there anyknown problems with on-connect on the build of icecast i`m using ? If not I`ll post my icecast config here.

| ubuntuserver 8.04 LTS / Icecast 2.3.2-kh18 |
Back to top
View user's profile Send private message Visit poster's website
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Fri Nov 27, 2009 6:42 pm    Post subject: Reply with quote

The HEAD method has never been handled, there hasn't been any call for it. There is also a question of the correct behaviour in certain cases such as fallback and on-demand relaying. You could get N bytes or 1 second worth of the stream if you wish to check for the stream, or use say /status.xsl?mount=/mystream or even use the stats interface curl -X STATS http://admin:pw@host:port/

The run on-connect program at stream start should be working fine on the setup you have specified. Are you not seeing any attempt in the error log?

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
mxb



Joined: 28 Nov 2008
Posts: 5

PostPosted: Sat Nov 28, 2009 10:34 am    Post subject: Reply with quote

thanks for your reply.

I`ve eventually got on-connect working by moving the script to the users home dir that icecast runs on.
Back to top
View user's profile Send private message 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