
send
鍙戦佽姹傚埌http鏈嶅姟鍣ㄥ苟鎺ユ敹鍥炲簲
璇硶
oXMLHttpRequest.send(varBody);
鍙傛暟
varBody
娆查氳繃姝よ姹傚彂閫佺殑鏁版嵁銆?
Example
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP.3.0"); xmlhttp.open("GET", "http://localhost/sample.xml", false); xmlhttp.send(); alert(xmlhttp.responseXML.xml);
澶囨敞
姝ゆ柟娉曠殑鍚屾鎴栧紓姝ユ柟寮忓彇鍐充簬open鏂规硶涓殑bAsync鍙傛暟锛屽鏋渂Async == False锛屾鏂规硶灏嗕細绛夊緟璇锋眰瀹屾垚鎴栬呰秴鏃舵椂鎵嶄細杩斿洖锛屽鏋渂Async == True锛屾鏂规硶灏嗙珛鍗宠繑鍥炪?
This method takes one optional parameter, which is the requestBody to use. The acceptable VARIANT input types are BSTR, SAFEARRAY of UI1 (unsigned bytes), IDispatch to an XML Document Object Model (DOM) object, and IStream *. You can use only chunked encoding (for sending) when sending IStream * input types. The component automatically sets the Content-Length header for all but IStream * input types.
濡傛灉鍙戦佺殑鏁版嵁涓築STR锛屽垯鍥炲簲琚紪鐮佷负utf-8, 蹇呴』鍦ㄩ傚綋浣嶇疆璁剧疆涓涓寘鍚玞harset鐨勬枃妗g被鍨嬪ご銆?
If the input type is a SAFEARRAY of UI1, the response is sent as is without additional encoding. The caller must set a Content-Type header with the appropriate content type.
濡傛灉鍙戦佺殑鏁版嵁涓篨ML DOM object锛屽垯鍥炲簲灏嗚缂栫爜涓哄湪xml鏂囨。涓0鏄庣殑缂栫爜锛屽鏋滃湪xml鏂囨。涓病鏈夊0鏄庣紪鐮侊紝鍒欎娇鐢ㄩ粯璁ょ殑UTF-8銆?
If the input type is an IStream *, the response is sent as is without additional encoding. The caller must set a Content-Type header with the appropriate content type.