httpwebrequest - Msxml2.ServerXMLHTTP 和 WinHttp.WinHttpRequest 之间的区别?

标签 httpwebrequest winhttp xmlhttprequest serverxmlhttp winhttprequest

就在我终于明白 Msxml2.XMLHTTP 和 Msxml2.ServerXMLHTTP 的区别的时候

http://support.microsoft.com/kb/290761

XMLHTTP is designed for client applications and relies on URLMon, which is built upon Microsoft Win32 Internet (WinInet). ServerXMLHTTP is designed for server applications and relies on a new HTTP client stack, WinHTTP. ServerXMLHTTP offers reliability and security and is server-safe. For more information, see the MSXML Software Development Kit (SDK) documentation.



突然我发现 WinHttp.WinHttpRequest ......

http://msdn.microsoft.com/en-us/library/aa382925(VS.85).aspx

Microsoft Windows HTTP Services (WinHTTP) provides developers with a server-supported, high-level interface to the HTTP/1.1 Internet protocol. WinHTTP is designed to be used primarily in server-based scenarios by server applications that communicate with HTTP servers.



那么,这与 Msxml2.ServerXMLHTTP 有何不同

(嗯,隐含的问题是我应该使用哪一个......)

最佳答案

Msxml2.XMLHTTP 和 Msxml2.ServerXMLHTTP 是两个组件,它们共享相似的接口(interface),用于通过 HTTP 协议(protocol)获取 XML 文件。前者建立在 URLMon 之上,后者依赖于 WinINet。后者基于 WinHTTP,它是 WinINet 的服务器友好替代品。简单地说——ServerXMLHTTP = XML + WinHTTP。

关于httpwebrequest - Msxml2.ServerXMLHTTP 和 WinHttp.WinHttpRequest 之间的区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1163045/

相关文章:

http - 如何用Fiddler模​​拟超时

asp.net - 将参数传递给 BeginGetRequestStream

javascript - 实现自重置 XMLHttpRequest 对象

c# - HttpWebRequest.BeginGetResponse

c++ - 允许在没有 Active Directory 信任的情况下进行 winhttp 委派

c++ - MFC 应用程序中 w/wininet 和 winhttp 编译错误

c++ - WinHttpReceiveResponse 函数返回错误

node.js - 如何在 NodeJS 中创建视频 URL Blob?

ajax - AJAX 请求的礼貌频率?

c# - 为什么我的 GET 请求没有捕获任何 cookie?