代码之家  ›  专栏  ›  技术社区  ›  a1oleg

xmlreader(.net)返回404,带有rss链接,feedly读取ok

  •  0
  • a1oleg  · 技术社区  · 8 年前
       string RSSURL = "http://zakupki.gov.ru/tinyurl/6a6ae7ed-e77d-4572-b7ac-43856452b2f6";
    
            WebClient wclient = new WebClient(); //method 1
            string RSSData = wclient.DownloadString(RSSURL);
            XDocument xml = XDocument.Parse(RSSData);
    
    
            var xmlReader = XmlReader.Create(RSSURL);//method 2. Both 404
    

    应该指出的是 zakupki.gov.ru 是非常具体的,与其他渠道这些方法工作得很好。 我见过的几个nuget库也在运行 xmlReader 是的。也就是说,他们不能解决这个问题

    1 回复  |  直到 8 年前
        1
  •  0
  •   a1oleg    8 年前