Hi all
Not sure if this is the right mailing list for this but thought I should report this here. I've recently noticed that I can no longer retrieve data from DBPedia using code written with .Net as I receive the following error: The server committed a protocol violation. Section=ResponseHeader Detail=CR must be followed by LF at System.Net.HttpWebRequest.GetResponse() All I'm trying to do is a HTTP GET on a resource URI such as http://dbpedia.org/resource/London The only headers I'm sending in my request are an accept header plus any .Net adds automatically, my accept header is as follows: application/rdf+xml,text/xml,text/n3,text/rdf+n3,text/turtle,application/x-t urtle,application/turtle,text/plain,application/json;q=0.9,*/*;q=0.8 A minimal example of code which reproduces this is as follows: using System; using System.IO; using System.Net; class DBPediaBugReproduction { public static void Main(string[] args) { HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://dbpedia.org/resource/London"); request.Accept = "application/rdf+xml"; request.Method = "GET"; try { using (HttpWebResponse response = (HttpWebResponse)request.GetResponse()) { Console.WriteLine("OK"); StreamReader reader = new StreamReader(response.GetResponseStream()); Console.WriteLine(reader.ReadToEnd()); } } catch (WebException webEx) { Console.WriteLine("ERROR"); Console.WriteLine(webEx.Message); Console.WriteLine(webEx.StackTrace); } } } Any help with this would be appreciated Rob Vesse PhD Student IAM Group Bay 20, Room 4027, Building 32 Electronics & Computer Science University of Southampton SO17 1BJ
------------------------------------------------------------------------------
_______________________________________________ Dbpedia-discussion mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion
