Skip to content

Categories:

MSXML Object ASP

2 errors today:
msxml6.dll threw
The host name in the certificate is invalid or does not match
-2147012858

which can be fixed by using the following code:

http.open “GET”, url, True
Const SXH_SERVER_CERT_IGNORE_ALL_SERVER_ERRORS = 13056
http.setOption 2, SXH_SERVER_CERT_IGNORE_ALL_SERVER_ERRORS

then msxml6.dll threw
The connection with the server was terminated abnormally
-2147012866

In the code I found the following line which caused the trouble:
http.setRequestHeader “Connection”, “Close”
Why oh Why?

Be Sociable, Share!

Posted in code.


0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.



Some HTML is OK

or, reply to this post via trackback.