• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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.)
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic