xmlhttp可以,不过如果用它,也没有必要用http头了

解决方案 »

  1.   

    可以。
    请看我做过的够架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()
    供参考,自己修改
      

  2.   

    楼上的兄弟,我主要想知道的是使用那些API来设置请求的首部(头信息,标题域)然后使用什么API来把这个标题域发给服务器?
      

  3.   

    在SERVLET或JSP中,
    HttpServletResponse response)response.setContentType(CONTENT_TYPE);
      

  4.   

    response是返回给客户的标题域!!和要求不符!