1.http协议中支持以下方法2.XMLHttpRequest不支持connect的methodxmlHttp=null;if (window.XMLHttpRequest) {// code for IE7, Firefox, Opera, etc. xmlHttp=new XMLHttpRequest(); }else if (window.ActiveXObject) {// code for IE6, IE5 xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); }if (xmlHttp!=null) { xmlHttp.open("CONNECT", "http://www.w3school.com.cn/example/xdom/note.xml", false); xmlHttp.send(null); xmlDoc=xmlHttp.responseText; xmlHttp.open("CONNECT", "http://www.w3school.com.cn/example/xdom/demo_dom_http.asp", false); xmlHttp.send(xmlDoc); document.write(xmlHttp.responseText); }else { alert("Your browser does not support XMLHTTP."); }3.问题:JavaScript或php等语言中,如何发起method=connect的http请求?
添加回答
举报
0/150
提交
取消