How do I decode the rdweb/feed/webfeed.aspx
content from a Microsoft remote desktop(RDP) server?
如何解码rdweb/feed/webfeed。来自Microsoft remote desktop(RDP)服务器的aspx内容?
I am having difficulty locating the encoding of the webfeed.aspx or more specifically https:// RDP url /rdweb/feed/webfeed.aspx
url of the RDP client. In Microsoft's RDP client, the data resolves to references to directories and applications that can be used as shortcuts for the RDP connection.
我很难找到webfeed的编码。至少是https:/rdp url /rdweb/feed/webfeed。RDP客户机的aspx url。在Microsoft的RDP客户机中,数据解析为对目录和应用程序的引用,这些目录和应用程序可以用作RDP连接的快捷方式。
The file that I get appears to be a base64 encoded file. From what I have read, this should be an XML file that describes the resources, but it seems to be compressed or encoded somehow. I am having no issue getting the data. I can read it via a browser (though not understand it) and Microsoft's RDP client is pulling the data appropriately, so the data is good. I need to decode/process the data because I am extending an open source RDP tool to do the same as Microsoft's RDP client.
我得到的文件看起来是一个base64编码的文件。从我所读到的内容来看,这应该是一个描述资源的XML文件,但它似乎以某种方式被压缩或编码。我得到数据没有问题。我可以通过浏览器阅读(尽管我不理解),而微软的RDP客户端正在适当地提取数据,所以数据很好。我需要解码/处理数据,因为我正在扩展一个开放源码的RDP工具,以实现与微软的RDP客户机相同的功能。
Here is an example,from the text file from a test server's rdweb/feed/webfeed.aspx
下面是一个示例,来自测试服务器的rdweb/feed/webfeed.aspx的文本文件
46672D19C141995BFAA3317324E7595B8AF001B09CF315A3668E2335F383079AA7397E6E8ADF56379306F18DCCFFB4A542CC4C8B81609D5E9D738F8347BC0372EB7513DD797EF0BFA921F7D6E2A108C6A12F44712D57D6191FB068AF1733256291BC0BD7429AD585DA9E6ECC3D1380562A091E980D6908E2E0EF4184689329686AD132E2D63945810D93F88ECAEC6A0B9460F23B9ABF229F974D3B32D0D7415CD8EAF1B6B93678718C9E658F0CEDA604D5294FF3458FB2ABD798A668E8E6714939C8115EC00A13354F8EF22563CF65F5C6D053306D4C3276032D045752412BA760C683C5
46672 d19c141995bfaa3317324e7595b8af001b09cf315a3668e2335f383079aa7397e6e8adf56379306f18dccffb4a542cc4c8b81609d5e9d738f8347bc0372eb7513dd797ef0bfa921f7d6e2a108c6a12f44712d57d6191fb068af1733256291bc0bd7429ad585da9e6ecc3d1380562a091e980d6908e2e0ef4184689329686ad132e2d63945810d93f88ecaec6a0b9460f23b9abf229f974d3b32d0d7415cd8eaf1b6b93678718c9e658f0ceda604d5294ff3458fb2abd798a668e8e6714939c8115ec00a13354f8ef22563cf65f5c6d053306d4c3276032d045752412ba760c683c5
1 个解决方案
#1
2
Have you tried something like this?
你试过这样的东西吗?
HttpWebRequest httpWebRequest = (HttpWebRequest)WebRequest.Create("https://RDPurl/rdweb/feed/webfeed.aspx");
HttpWebResponse httpWebResponse = (HttpWebResponse)httpWebRequest.GetResponse();
string connectionXml;
using (StreamReader streamReader = new StreamReader(httpWebResponse.GetResponseStream()))
{
connectionXml = streamReader.ReadToEnd();
}
More detailed code is here.
这里有更详细的代码。
The resulting connectionXml
string should be Resource List Syntax.
生成的connectionXml字符串应该是资源列表语法。
#1
2
Have you tried something like this?
你试过这样的东西吗?
HttpWebRequest httpWebRequest = (HttpWebRequest)WebRequest.Create("https://RDPurl/rdweb/feed/webfeed.aspx");
HttpWebResponse httpWebResponse = (HttpWebResponse)httpWebRequest.GetResponse();
string connectionXml;
using (StreamReader streamReader = new StreamReader(httpWebResponse.GetResponseStream()))
{
connectionXml = streamReader.ReadToEnd();
}
More detailed code is here.
这里有更详细的代码。
The resulting connectionXml
string should be Resource List Syntax.
生成的connectionXml字符串应该是资源列表语法。