the connection with the server was terminated abnormally xmlhttp
(answering an old thread because its the first result for this message in Google)
I just ran in to this issue. It turned out that I was POSTing an empty string:
myString = FunctionThatWasReturningEmptyString()
set oHTTP = CreateObject("Msxml2.ServerXMLHTTP")
oHTTP.open "GET", sUrl, false
oHTTP.send myString
Once I fixed the function to return an empty XML set instead of an empty string, my error went away
Some servers need a content-length header set for an HTTP POST to function properly. In our case (using serverXMLHttp) this was needed:
xmlhttp.Open "POST", URL , false
xmlhttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
xmlhttp.setRequestHeader "Content-Length", Len(postdata)
Another possibility; the server at the far end may be filtering (and dropping) requests based on browser agent strings, to prevent programmatic scraping.
What happens when you just request that URL in a regular browser?
This error code is ERROR_INTERNET_CONNECTION_ABORTED
. The most common reasons are a firewall or anti-virus interfering with the connection, a proxy borking the connection data. I can also be caused by a name resolution issue -- for example, if the host name resolves to 127.0.0.1 locally and the web server is bound to the public IP address only.