I am using MSXML 4 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. Any ideas?
Here is the code:
Set objXMLHTTP = New MSXML2.XMLHTTP40
Set m_objCommandFileDOM = New MSXML2.DOMDocument40
m_objCommandFileDOM.setProperty "ServerHTTPRequest", True
URL = " & Text1.Text & "/XML/ntbxml.cgi"
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 code:
Set objXMLHTTP = New MSXML2.XMLHTTP40
Set m_objCommandFileDOM = New MSXML2.DOMDocument40
m_objCommandFileDOM.setProperty "ServerHTTPRequest", True
URL = " & Text1.Text & "/XML/ntbxml.cgi"
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>