Msxml2.ServerXMLHTTP和WinHttp.WinHttpRequest之间的区别? [英] differences between Msxml2.ServerXMLHTTP and WinHttp.WinHttpRequest?

查看:420
本文介绍了Msxml2.ServerXMLHTTP和WinHttp.WinHttpRequest之间的区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我最终了解Msxml2.XMLHTTP和Msxml2.ServerXMLHTTP之间的区别时

just when I finally understood the difference between Msxml2.XMLHTTP and Msxml2.ServerXMLHTTP

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

XMLHTTP专为客户端应用程序而设计,并依赖于URLMon,该URLMon是基于Microsoft Win32 Internet(WinInet)构建的. ServerXMLHTTP专为服务器应用程序而设计,并依赖于新的HTTP客户端堆栈WinHTTP. ServerXMLHTTP提供可靠性和安全性,并且是服务器安全的.有关更多信息,请参见MSXML软件开发工具包(SDK)文档.

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 ...

suddenly I find WinHttp.WinHttpRequest...

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

Microsoft Windows HTTP Services(WinHTTP)为开发人员提供了服务器支持的HTTP/1.1 Internet协议的高级接口. WinHTTP设计为主要用于与HTTP服务器通信的服务器应用程序在基于服务器的方案中使用.

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有什么区别

so, how is this different from Msxml2.ServerXMLHTTP

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

(well, the implicit question is which one should I use...)

推荐答案

Msxml2.XMLHTTP和Msxml2.ServerXMLHTTP是两个组件,它们共享用于通过HTTP协议获取XML文件的相似接口.前者基于URLMon,后者依赖WinINet.后者基于WinHTTP构建,它是WinINet的服务器友好替代.简而言之-ServerXMLHTTP = XML + WinHTTP.

Msxml2.XMLHTTP and Msxml2.ServerXMLHTTP are two components share the similar interface for fetching XML files over HTTP protocal. The former is built upon URLMon, which relies on WinINet. The later is built upon WinHTTP, which is a server friendly replacement for WinINet. To put it simple - ServerXMLHTTP = XML + WinHTTP.

这篇关于Msxml2.ServerXMLHTTP和WinHttp.WinHttpRequest之间的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆