I am trying to make a program that will connect to my shoutcast page and then retrieve information. Eg song,dj,listeners etc etc

Now when I try to run a web request I get this error:

"The server committed a protocol violation"

The code I'm using is

HttpWebRequest request = (HttpWebRequest)
     WebRequest.Create("http://69.64.58.2:8000");

 HttpWebResponse response = (HttpWebResponse)
     request.GetResponse();

If I take out the port in the url then it connects to the url but on port 80, which is not what I need. Any help is greatly appreciated.

Recommended Answers

All 3 Replies

Well first thing to try is telnet to port 8000, ask it a web style question check thats what you get.. Work from there.

Wrong topic - sorry

But that uses port 9000 not 8000..

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.