HttpServletResponse « Header « JSP-Servlet Q&A





1. Java HttpServletResponse with blank-value headers?    stackoverflow.com

How can I make a java-based application server reply with an empty-valued response header, like this?

content-length:\r\n
Unfortunately when I call
response.setHeader("Content-Length", len)
where len is either an empty string or null, the response will ...

2. How do I rid extra Date header from HttpServletResponse?    stackoverflow.com

I'm writing a simple reverse proxy to pass requests to S3 and response back to client (aim is to enable SSL in the end). It runs under Jetty7. My proxy copies all ...