I am using MSXML 4 in VB6 to post a message to a web server and recieve the response. This has worked on many PC's at many different locations until now. For one customer it does not work. I get "Download of the specified resource has failed". I know more about VB than XML so I am lost, ay ideas?
Here is the VB code:
Set objXMLHTTP = New MSXML2.XMLHTTP40
Set m_objCommandFileDOM = New MSXML2.DOMDocument40
m_objCommandFileDOM.setProperty "ServerHTTPRequest", True
URL = "XML = "<?xml version=""1.0"" encoding=""US-ASCII"" standalone=""yes""?> <get_status detail=""resource""/>"
m_objCommandFileDOM.loadXML XML
objXMLHTTP.Open "POST", URL, False
objXMLHTTP.send m_objCommandFileDOM
DoEvents
'Error at this point - "Download of the specified resource failed"
The message that normally comes back looks like this:
<status details="resource">
<cpu_temperature>61</cpu_temperature>
<real_ip_address>192.168.1.98</real_ip_address>
</status>
Here is the VB code:
Set objXMLHTTP = New MSXML2.XMLHTTP40
Set m_objCommandFileDOM = New MSXML2.DOMDocument40
m_objCommandFileDOM.setProperty "ServerHTTPRequest", True
URL = "XML = "<?xml version=""1.0"" encoding=""US-ASCII"" standalone=""yes""?> <get_status detail=""resource""/>"
m_objCommandFileDOM.loadXML XML
objXMLHTTP.Open "POST", URL, False
objXMLHTTP.send m_objCommandFileDOM
DoEvents
'Error at this point - "Download of the specified resource failed"
The message that normally comes back looks like this:
<status details="resource">
<cpu_temperature>61</cpu_temperature>
<real_ip_address>192.168.1.98</real_ip_address>
</status>