gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-03 20:54:27 29 4
gpt4 key购买 nike

就在我终于明白 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/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com