differences between Msxml2.ServerXMLHTTP and WinHttp.WinHttpRequest?

后端 未结 3 954
你的背包
你的背包 2020-12-15 07:30

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

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

XMLHTTP i

相关标签:
3条回答
  • 2020-12-15 08:15

    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.

    0 讨论(0)
  • 2020-12-15 08:17

    Similarly a recent application has found me asking similar questions, however after performing some rudimentary research I have simplified as follows:

    WinHTTP :: high-level interface to the HTTP/1.1 Internet protocol

    ServerXMLHTTP :: ServerXMLHTTP is recommended for server applications and XMLHTTP is recommended for client applications

    Depends what you are doing and how much control you require.

    Explicitly denied elements of ServerXMLHTTP often cause some developers annoyances as it requires a little more 'work' to implement effectively. The helping-hand with the explicitly allowed WinHTTP and XMLHTTP objects is not there with ServerXMLHTTP.

    If your solution requires elements of Enterprise up-scaling, out-scaling then perhaps choose appropriately.

    0 讨论(0)
  • 2020-12-15 08:30

    We were using both of these components in classic ASP web applications. There were called a LOT of times every minute, from server to server asp server-side page calling another asp or aspx server-side page).

    Server.CreateObject("WinHttp.WinHttpRequest.5.1")
    Server.CreateObject("MSXML2.ServerXMLHTTP.6.0")
    

    Our experience is that WinHttpRequest is stable, the other is not. We had to remove all our createobject to serverxmlhttp and replace them by winhttprequest, because after a while, it was taking lot of memory, was freezing, or the iis application pool did not respond or became very slow.

    I don't know the detailed specifications of each components, but I can assure you that, from our experience, "MSXML2.ServerXMLHTTP.6.0" is the one to use.

    0 讨论(0)
提交回复
热议问题