I 'm trying to parse RSS feeds and then display them on my website. My code seems to work correctly when parsing techcrunch & arstechnica RSS. But when I try to parse HackerNews RSS I get the an error.
XmlReader readXML;
readXML = XmlReader.Create(GetURL());
SyndicationFeed News= SyndicationFeed.Load(readXML);
readXML.Close();
return News;
I get the following error on readXML = XmlReader.Create(GetURL()); geturl is the url for rss.
The server committed a protocol violation. Section=ResponseStatusLine
Any suggestions why I 'm getting the above error. Thanks