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 

http get

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



Joined: 29 Jun 2008
Posts: 16

PostPosted: Sat Aug 23, 2008 11:11 pm    Post subject: http get Reply with quote

Hi all,

I want to get the value of 'server_name' by using the http get method, but I cant get it to work. So how do I get the value of server_name using http get?

Thanks!
Back to top
View user's profile Send private message
MHz



Joined: 29 Jun 2008
Posts: 16

PostPosted: Mon Aug 25, 2008 9:52 am    Post subject: Reply with quote

Nobody?
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Mon Aug 25, 2008 1:15 pm    Post subject: Reply with quote

those stats are available to the xsl pages. You just need create and xsl page to report just that stat. As to why it's not working for you I can't say as we have nothing to go on.

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



Joined: 29 Jun 2008
Posts: 16

PostPosted: Wed Aug 27, 2008 12:37 am    Post subject: Reply with quote

Karl, could you please show me a example of a white page displaying only the current artist and current song? I dont know much about XML yet. Thanks!
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Wed Aug 27, 2008 1:28 am    Post subject: Reply with quote

it's xsl you'd need to check, something like the following

Code:

<xsl:stylesheet xmlns:xsl = "http://www.w3.org/1999/XSL/Transform" version = "1.0" >
    <xsl:output method="text" media-type="text/plain" encoding="UTF-8"
        doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
        doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" />
    <xsl:template match = "/icestats">
        <xsl:for-each select="source">
mount: <xsl:value-of select="@mount" />
artist: <xsl:if test="artist"><xsl:value-of select="artist" /></xsl:if>
title: <xsl:if test="title"><xsl:value-of select="title" /></xsl:if>
        </xsl:for-each>
    </xsl:template>
</xsl:stylesheet>


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