1.http協(xié)議中支持以下方法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等語言中,如何發(fā)起method=connect的http請求?
JavaScript怎么發(fā)起Method=CONNECT的http請求
尚方寶劍之說
2019-03-21 18:14:30