Link to home
Start Free TrialLog in
Avatar of nbraasch
nbraasch

asked on

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
Avatar of peh803
peh803
Flag of United States of America image

How about something like this?

http://support.microsoft.com/kb/302820
Avatar of nbraasch
nbraasch

ASKER

Already tried that.  The language is set in explorer.
Also, I already said that this is working for another third party server, just not this one.
ASKER CERTIFIED SOLUTION
Avatar of Sven
Sven
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Yes, it is, and yes, there is a cert error.  What is the option parameter do do that?
Nevermind, I found it.  I am awarding you the points darth sonic.  thank you for the pointer.
It would have helped if Darthsonic had provided the code to ignore the cert error, instead of just saying that there was one.
I was not online at the time you posted that there is a cert error. I would have posted the code for you ;)
For all of you searching for a soution with cert errors on xmlhttp:

xmlhttp.setOption 2, 13056  'ignore all certificate errors!