Old 14th November 2015, 22:09   #1
Marteen Dryke
Junior Member
 
Join Date: Nov 2015
Posts: 1
song info for server V2

hello. when making a httprequest from a game called InWorldz to access the song info im getting an error 403.
did test the same request from another game using the same plateform "SecondLife" and i get a positive responce. why the service is forbitten in one and not the other.

i did ask in a mantis on the game an i get this reply from one of the founder

-I just checked through our blocks and blacklists and I don't see any reason why we would be generating a 403. It seems that the status is probably coming from your shoutcast host possibly in response to our user agent.

-If you can raise an issue with your host they may be able to provide you with more information which can lead to a workaround or something we may be able to do on our end

-The user agent coming from InWorldz should be "LSL Script (Mozilla Compatible)"

Also i did some reading and it said that the legacy was back on server v2 to help getting the song info on some game that didnt support the V2 and i get the same result when it a stream V2

the old way only work if it a V1 stream
Marteen Dryke is offline   Reply With Quote
Old 19th November 2015, 14:19   #2
neralex
Major Dude
 
Join Date: Mar 2011
Posts: 576
The question is with which version of SHOUTcast DNAS 2 you tried the request?

In SHOUTcast DNAS v1 servers a 7.html could be accessed to get certain information about the current server instance for reporting and other usage. This 7.html was replaced by an equivalent xml response.

http://wiki.winamp.com/wiki/SHOUTcas...2_XML_Reponses

Some years after the start of SHOUTcast DNAS 2 the 7.html came back in the DNAS caused by many user-requests.

/7.html returns the old way from v1 also in a current build of v2

/currentsong?sid=1 returns the streamtitle of v2

/stats?sid=1 (XML response)
/stats?sid=1&json=1 (JSONP response)

http://wiki.winamp.com/wiki/SHOUTcas...2#Public_Pages

I guess you are using PHP and cURL for the httprequest. If yes you could create a simple if-statement to start the request with a 2nd run with /currentsong?sid=1, when you get negative result from the 1st run.

You could also parse the provided XML stats from DNAS v2 and grab what you need or using the JSONP response if you have the chance to use Javascript.

I would suggest you to download the current build of SHOUTcast DNAS 2 and check the docs because there are many new/changed options which are not shown in the winamp wiki pages.
neralex is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Shoutcast > Shoutcast Technical Support

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump