50分~客户能否自己设置http标题域,然后再把包含这个标题域的请求发送给服务器? xmlhttp可以,不过如果用它,也没有必要用http头了 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 可以。请看我做过的够架HTTP头信息进行服务器欺骗。 set sender = server.CreateObject("Msxml2.ServerXMLHTTP.3.0") sender.open "GET", "http://www.yourweb.com/url.asp?id=180686",falseheadstr = "GET /xxx.php HTTP/1.1" + vbCrLfheadstr = headstr + "Accept: */*" + vbCrLfheadstr = headstr + "Referer: xxx.php" + vbCrLfheadstr = headstr + "Accept-Language: zh-cn" + vbCrLfheadstr = headstr + "Accept-Encoding: gzip, deflate" + vbCrLfheadstr = headstr + "User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)" + vbCrLfheadstr = headstr + "Host: host" + vbCrLfheadstr = headstr + "Connection: Keep-Alive" + vbCrLfheadstr = headstr + "Cookie: " + vbCrLf + vbCrLfhttptitle(8) = headstrsender.send()供参考,自己修改 楼上的兄弟,我主要想知道的是使用那些API来设置请求的首部(头信息,标题域)然后使用什么API来把这个标题域发给服务器? 在SERVLET或JSP中,HttpServletResponse response)response.setContentType(CONTENT_TYPE); response是返回给客户的标题域!!和要求不符! 请教JSP代码 请教高手解决问题! 求一段(取时间)代码 关于树型菜单的一点问题 一个弱智的问题 【求教高手】公认比较好的三层架构的网站框架是什么样的?还有关于struts... 如何设置我写的工程的主页,虚心求教!! cancel掉的request请求,是否还能传递到后台 怪!common.upload到了这一句就出错! applet在win2000英文版下的中文问题! 怎么样配置jsp+oracle环境? 请问各位大哥们!jsp程序中出什么错时,会报java.sql.SQLException: [Microsoft][ODBC 驱动程序 管理器] 无效的光标状态 的错!
请看我做过的够架HTTP头信息进行服务器欺骗。 set sender = server.CreateObject("Msxml2.ServerXMLHTTP.3.0")
sender.open "GET", "http://www.yourweb.com/url.asp?id=180686",falseheadstr = "GET /xxx.php HTTP/1.1" + vbCrLf
headstr = headstr + "Accept: */*" + vbCrLf
headstr = headstr + "Referer: xxx.php" + vbCrLf
headstr = headstr + "Accept-Language: zh-cn" + vbCrLf
headstr = headstr + "Accept-Encoding: gzip, deflate" + vbCrLf
headstr = headstr + "User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)" + vbCrLf
headstr = headstr + "Host: host" + vbCrLf
headstr = headstr + "Connection: Keep-Alive" + vbCrLf
headstr = headstr + "Cookie: " + vbCrLf + vbCrLf
httptitle(8) = headstr
sender.send()
供参考,自己修改
HttpServletResponse response)response.setContentType(CONTENT_TYPE);