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
LVL 1
nbraaschAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
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!
0
 
peh803Commented:
How about something like this?

http://support.microsoft.com/kb/302820
0
 
nbraaschAuthor Commented:
Already tried that.  The language is set in explorer.
0
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.
0
 
nbraaschAuthor Commented:
Yes, it is, and yes, there is a cert error.  What is the option parameter do do that?
0
 
nbraaschAuthor Commented:
Nevermind, I found it.  I am awarding you the points darth sonic.  thank you for the pointer.
0
 
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.
0
 
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 ;)
0
 
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!
0
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.