jsp里说的"报头"如何理解!!!

解决方案 »

  1.   

    不知道你的报头是指什么,
    如果你指的是request.getHeader、response.addHeader这些,它们是代表HTTP协议中的请求和返回的开头部分一个标准的HTTP请求大致如下:
    GET /index.jsp HTTP/1.1
    Referer: http://localhost:8080/
    User-Agent: Mozilla/4.0 (compatible; MSIE 6.0;)
    Host: localhost:8080
    返回
    HTTP/1.1 200 OK
    Server: Apache-Coyote/1.1
    Content-Type: text/html;charset=gbk
    Content-Length: 4
    Date: Tue, 24 Apr 2007 12:30:00 GMTnoop
    请求部分由Web服务器分析并正确的定位请求到index.jsp中,
    index.jsp中只是返回noop部分,前面的部分同样由Web服务器协助完成(jsp中可以要求添加更多的属性)