How can I resolve an issue with Microsoft.XMLHTTP posting?

I am posting an xml document to an third-party server, and it is failing with the error 0x800c0008.  I am able to use the same code to post to a different third-party server successfully.  How can I trouble shoot the issue prior to contacting the third party?

Here is my vbscript code:

' Create XMLHTTP Object
Set oXMLhttpObject = WScript.CreateObject("Microsoft.XMLHTTP")            
' Open connection
oXMLhttpObject.Open "POST",cnXMLHTTP_TRANSACTION_URL,false            
' Set Header for content type
oXMLhttpObject.setRequestHeader "Content-type", "text/xml"            
' Send XML string
oXMLhttpObject.send strXMLString
' Read Response
strResponseStatus       = oXMLhttpObject.status
strResponseText       = oXMLhttpObject.responseText
Who is Participating?

Improve company productivity with a Business Account.Sign Up

SvenConnect With a Mentor Tech Lead Web-DevelopmentCommented:
Is the URL you are posting to SSL secured? If so, when you call it in your browser is there a certificate error? If so, there is an option parameter for XMLHTTP to ignore those!
How about something like this?
nbraaschAuthor Commented:
Already tried that.  The language is set in explorer.
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

nbraaschAuthor Commented:
Also, I already said that this is working for another third party server, just not this one.
nbraaschAuthor Commented:
Yes, it is, and yes, there is a cert error.  What is the option parameter do do that?
nbraaschAuthor Commented:
Nevermind, I found it.  I am awarding you the points darth sonic.  thank you for the pointer.
nbraaschAuthor Commented:
It would have helped if Darthsonic had provided the code to ignore the cert error, instead of just saying that there was one.
SvenTech Lead Web-DevelopmentCommented:
I was not online at the time you posted that there is a cert error. I would have posted the code for you ;)
SvenTech Lead Web-DevelopmentCommented:
For all of you searching for a soution with cert errors on xmlhttp:

xmlhttp.setOption 2, 13056  'ignore all certificate errors!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.