求代码javascript 用xmlhttp 发送
xmlhttp(POST,url,true);
send(para);url是后台的PHP代码
para是 一个需要访问的HTTP query 就是一个URL
发送到www.aaa.comwww.aaa.com会返回一个xml文档
xml文档通过php再返回给javascript 的xmlhttp...这个用来做AJAX的跨域请求的代理的....
PHP懂的不多....
xmlhttp(POST,url,true);
send(para);url是后台的PHP代码
para是 一个需要访问的HTTP query 就是一个URL
发送到www.aaa.comwww.aaa.com会返回一个xml文档
xml文档通过php再返回给javascript 的xmlhttp...这个用来做AJAX的跨域请求的代理的....
PHP懂的不多....
http://apps.hi.baidu.com/share/detail/23768465
xmlhttp.open("POST","www.aaa.com",true);
xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");//选择用post方式要加上这条
xmlhttp.send(para);//发送请求返回xml用var obj=xmlhttp.responseXML;接收。