r***@gmail.com
2007-09-27 17:00:18 UTC
I didn't find a clear solution to this error in any posts, so here it
is FYI...hope it saves the reader some headaches!
Problem:
Server-to-server XML using the XMLHTTP object requesting XML from a
secure SSL (HTTPS) page, throws error 800c0008 (-2148270088) and the
message: "The download of the specified resource has failed."
Solution:
Use the "Msxml2.ServerXMLHTTP" object instead of the regular "XMLHTTP"
object. For some reason the regular object works server-to-server over
HTTP, but when using HTTPS, only the ServerXMLHTTP object will work.
Reason, according to MSDN:
"The only supported method for making HTTP requests from server-side
ASP script is if you use ServerXMLHTTP object (MSXML2.ServerXMLHTTP)
that is provided with XML 3.0 or later." (http://support.microsoft.com/
kb/237906)
See the ServerXMLHTTP Reference here: http://msdn2.microsoft.com/en-us/library/ms754586.aspx
Note: If the XML you are requesting has an XML declaration, make sure
that declaration is the first thing in the response (i.e. no empty
lines before it), otherwise ServerXMLHTTP will be not be able to
populate "responseXML" (but it will be able to populate
"responseText").
~Ricky
is FYI...hope it saves the reader some headaches!
Problem:
Server-to-server XML using the XMLHTTP object requesting XML from a
secure SSL (HTTPS) page, throws error 800c0008 (-2148270088) and the
message: "The download of the specified resource has failed."
Solution:
Use the "Msxml2.ServerXMLHTTP" object instead of the regular "XMLHTTP"
object. For some reason the regular object works server-to-server over
HTTP, but when using HTTPS, only the ServerXMLHTTP object will work.
Reason, according to MSDN:
"The only supported method for making HTTP requests from server-side
ASP script is if you use ServerXMLHTTP object (MSXML2.ServerXMLHTTP)
that is provided with XML 3.0 or later." (http://support.microsoft.com/
kb/237906)
See the ServerXMLHTTP Reference here: http://msdn2.microsoft.com/en-us/library/ms754586.aspx
Note: If the XML you are requesting has an XML declaration, make sure
that declaration is the first thing in the response (i.e. no empty
lines before it), otherwise ServerXMLHTTP will be not be able to
populate "responseXML" (but it will be able to populate
"responseText").
~Ricky