现在一个请求中,有一个参数的值比较多数据,需要向header中以流的形式写入数据,然后服务器端再通过流的形式从header中取数据,该怎么做
解决方案 »
- 如何将jar包class文件反编译成一个java源码项目出来?
- 谁有ssh整合的例子呀。带jar包的,我用myeclipse添加jar包时老出错,感激不尽
- 现在市场上最流行的几种JAVA技术是些啥。。。
- 几个Struts和Spring的问题
- 请教高手一个问题!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
- MyEclipse10整合S2SH出现applicationContext.xml异常,求解决
- 开发介绍公司情况基于触摸屏的软件,怎么实现接口
- weblogic驱动的错误如何解决?
- 高分求struts实力教程100
- SSM如何接收并把Excel转换成List?
- 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协议。