• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to safely ensure HTTP Response Header Transfer-Encoding is always chunked?  RSS feed

 
Michael Finney
Ranch Hand
Posts: 508
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need a way to safely ensure that the HTTP Response Header Transfer-Encoding is always chunked.

I can set on to HttpServletResponse the Transfer-Encoding to Chunked via setHeader(“Transfer-Encoding”, “Chunked”). I believe I have to make sure the content-length is not set.

Am I missing anything?
Thanks.

(Background: this is a workaround for neither content-length and Transfer-Encoding "Chunked" being there sometimes. My service provider is willing to work with me on this.)
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!