Today, I found an error when I viewed Microsoft XML4.0 SDK help, which exists in the DOM Reference> XML Dom Methods> SetRequestsHeader Method (IxmlhttpRequest). The subject's examples section has the following line of code:
Myhttp.open "get", "http://samplesserver/httpreqserver.asp", False
'Simulate Message Sent by a Custom User Agent.
Myhttp.setRequestheader "User-Agent", "MyCustomuser"
mydata.async = false
myhttp.send mydata.xmldocument
The first line of the first line should be POST, otherwise httpreqserver.asp will not receive the content sent by the client, and request.totalbytes will be 0.