Old 2nd April 2012, 08:09   #1
hajjemo
Junior Member
 
Join Date: Feb 2012
Posts: 5
404 not found

Hi all,

I developed a SHOUTcast protocol,with C programming language on Cortex M3 micro-controller, and I want to connect to "Mosaique Fm" station for example.
SO I sent to the server the following message :
"GET http://41.224.36.51:8000 HTTP/1.1\r\n"
"Host: 41.224.36.51:8000\r\n"
"User-Agent: WinampMPEG/2.7\r\n"
"Accept: */*\r\n"
"Connection: close\r\n\r\n";


But the SHOUTcast server always answers me with:
"ICY 404 Resource Not Found
icy-notice1:<BR>SHOUTcast Distributed Network Audio Server/win32 v1.9.8<BR>
icy-notice2: The resource requested was not found<BR>


I don't no if there are a problem with the sent message, or the server don't accept my board because I don't use an Operating system ...

Thanks,
hajjemo is offline   Reply With Quote
Old 2nd April 2012, 10:02   #2
jaromanda
Forum King
 
Join Date: Jun 2007
Location: Under the bridge
Posts: 2,289
Weird one that ... I have an adobe air player that I wrote that plays any DNAS stream you can throw at it ... except that one ... I get an error in AIR even BEFORE the GET request is sent!!!

Yet, same code base, different platform (nekovm) connects and receives a stream

"If you don't like DNAS, write your own damn system"

So I did
jaromanda is offline   Reply With Quote
Old 2nd April 2012, 11:30   #3
hajjemo
Junior Member
 
Join Date: Feb 2012
Posts: 5
My problem is that I don't know what I should send as GET message to the server, such as station URL and host name

The only solution I have is to copy the message sent by my PC, obtained with Wireshark, but always I receive 404 not found as response.
hajjemo is offline   Reply With Quote
Old 2nd April 2012, 11:59   #4
jaromanda
Forum King
 
Join Date: Jun 2007
Location: Under the bridge
Posts: 2,289
Quote:
Originally Posted by hajjemo View Post
My problem is that I don't know what I should send as GET message to the server, such as station URL and host name
what you are sending looks OK - I tried it in AIR and nekovm (AIR didn't work, nekovm did) - but then I can't get AIR to open that stream using the headers I use, but nekovm opens it fine with my headers ... so, your request headers seem fine

personally, I send

GET http://41.224.36.51:8000 HTTP/1.0\r\n

and no Host: header - but that's not your issue

"If you don't like DNAS, write your own damn system"

So I did
jaromanda is offline   Reply With Quote
Old 2nd April 2012, 14:34   #5
jaromanda
Forum King
 
Join Date: Jun 2007
Location: Under the bridge
Posts: 2,289
It just occurred to me - I knew something looked out of place

I send the following GET request header

GET / HTTP/1.0

Even when I changed my code to use HTTP/1.1, the request is

GET / HTTP/1.1

That's your problem

Now I wonder why that stream doesn't work form my Adobe AIR player ?

"If you don't like DNAS, write your own damn system"

So I did
jaromanda 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