Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

why get and post is not working for this url?

Status
Not open for further replies.
Apr 28, 2006
69
NL
Hi all i came accross this smil file that if i open it with real audio player it starts playing the 3 songs one by one. But if i try to put one of the urls in browser i do not get songs instead i get a voice says the song could not be found!!

I wonder how they did that since i want to do the same for some of my files on my webserver. Could an expert tell me how this is possible and how it works that real audo player can get the songs and play them but direct url will give failed massge.Thanks

Code:
<smil>
    <head>
       <layout type="text/smil-basic-layout">
      <root-layout id="root" height="2" width="2" background-color="black"/>
        </layout>
    </head>
    <body>
        <seq>
       <audio src="[URL unfurl="true"]http://remotsite.com/new/play.php?d=04&song=2353"/>[/URL]
       <audio src="[URL unfurl="true"]http://remotsite.com/new/play.php?d=04&song=2354"/>[/URL]
       <audio src="[URL unfurl="true"]http://remotsite.com/new/play.php?d=04&song=2355"/>[/URL]
        </seq>
    </body>
</smil>
 
They're probably switching content based on HTTP referer logging. Unless the browser connecting reports that the main page sent it to the music link, the site streams the wrong file.




Want the best answers? Ask the best questions! TANSTAAFL!
 
Thanks for u reply. could u tell me how they check for HTTP referer logging and make decision baced on that ?
 
sleipnier214 could u tell me what is the id of media playes so i check for that in if statment.Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top