Knowledgebase
Slow or error response when using MSXML2.XMLHTTP
Posted by zz-James Moir on 21 June 2016 04:06 PM

Issue

You may encounter a very slow or error response when attempting to communicate with an external site using Server.CreateObject("MSXML2.XMLHTTP").

If you encounter an error, the error may be similar to the one shown below:

msxml3.dll error '800c0008'

The download of the specified resource has failed.

Solution

Utilise Server.CreateObject("MSXML2.ServerXMLHTTP") instead.

Cause

The specific cause is unknown, however the XMLHTTP Request object was written with a client application in mind, e.g. IE or a VB app. The client would make calls to a server or a resource remote to it and would get data back. The ServerXMLHTTP Request object was written with the server environment in mind. If you are doing these requests from from an ASP page then you should use ServerXMLHTTP. It was written with a server and/or multi-threaded environment in mind. The XMLHTTP Request object was not written or intended to be used in this manner.