现在一个请求中,有一个参数的值比较多数据,需要向header中以流的形式写入数据,然后服务器端再通过流的形式从header中取数据,该怎么做
解决方案 »
- 关于ERROR JDBCExceptionReporter ORA-02291的错误问题,求助!
- 该怎样使用CXF中的sample啊?
- EJb3 服务器端没有输出
- 读取XML文件时,若TAG为空,则卡死,求助!
- 请教各位达人,关于struts中并发处理同步的问题
- 怎么用JSP读取XML?
- 那位大吓有eclipse安装程序的?
- upload一个文件,如何在servlet中得到文件名?
- 项目在A服务器,上传图片如何到B服务器
- 如何在客户端处理excel文档,然后上传到服务端的数据库里面
- htmlparser爬取网页时报Connection reset异常
- ehcache的数据是独立于内存中还是寄存于容器(tomcat)中?
HttpServletResponse resp)
throws ServletException,
java.io.IOException Receives an HTTP HEAD request from the protected service method and handles the request. The client sends a HEAD request when it wants to see only the headers of a response, such as Content-Type or Content-Length. The HTTP HEAD method counts the output bytes in the response to set the Content-Length header accurately. If you override this method, you can avoid computing the response body and just set the response headers directly to improve performance. Make sure that the doHead method you write is both safe and idempotent (that is, protects itself from being called multiple times for one HTTP HEAD request). If the HTTP HEAD request is incorrectly formatted, doHead returns an HTTP "Bad Request" message. Parameters:
req - the request object that is passed to the servlet
resp - the response object that the servlet uses to return the headers to the clien
Throws:
java.io.IOException - if an input or output error occurs
ServletException - if the request for the HEAD could not be handled=======================
据我了解,head头里不能存放大量的数据,建议去研究下HTTP协议。