Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个动态生成 RSS 提要的网页。
http://localhost/syn/atom.aspx
这会动态生成 rss 提要。
我正在尝试从我的外部应用程序访问 rss,在这种特殊情况下,我需要将 rss 页面下载到内存流中。
这可能吗?
WebRequest request = WebRequest.Create("http://localhost/syn/rss.aspx"); WebResponse response = request.GetResponse(); Console.WriteLine(((HttpWebResponse)response).StatusDescription); Stream dataStream = response.GetResponseStream(); return dataStream;