Hi
I have a problem with http headers.
Iam creating:
private HttpWebRequest request = null;
and:
request = (HttpWebRequest)WebRequest.Create(server);
request.Headers.Clear();
request.Headers.Add("GET", serverPath + " HTTP/1.0");
request.Headers.Add("Icy-MetaData", "1");
request.UserAgent = "WinampMPEG/5.09";
When i try to connect to the 'server' my port sniffer show me in request
unwanted header:
GET / HTTP/1.1 <--- where does is come from?????
GET: /stream/1077 HTTP/1.0
Icy-MetaData: 1
User-Agent: WinampMPEG/5.09
Host: nyc.etn.fm
Connection: Keep-Alive
ICY 404 Resource Not Found
icy-notice1:SHOUTcast Distributed Network Audio Server/posix v1.8.1<BR>
icy-notice2:The resource requested was not found<BR>
Server rejects request because cant see stream in path "/". But i have
specified different path?!?!?!
Can someone help me and tell where does the unwanted header come from?
I Use VS2005 beta.
PK