• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

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

 
Ranch Hand
Posts: 508
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.)
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic