Microsoft XML 4.0 Parser SDK Help About the Open method

xiaoxiao2021-03-06  40

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.

转载请注明原文地址:https://www.9cbs.com/read-53256.html

New Post(0)