|
|
|
|
#1 |
|
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, |
|
|
|
|
|
#2 |
|
Major Dude
Join Date: Jun 2007
Location: NSW Australia
Posts: 1,655
|
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 General Shoutcast troubleshooting guide
|
|
|
|
|
|
#3 |
|
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. |
|
|
|
|
|
#4 | |
|
Major Dude
Join Date: Jun 2007
Location: NSW Australia
Posts: 1,655
|
Quote:
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 General Shoutcast troubleshooting guide
|
|
|
|
|
|
|
#5 |
|
Major Dude
Join Date: Jun 2007
Location: NSW Australia
Posts: 1,655
|
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 ? General Shoutcast troubleshooting guide
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|