aspose file tools*
The moose likes Servlets and the fly likes How to avoid chunking / chunked responses? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "How to avoid chunking / chunked responses?" Watch "How to avoid chunking / chunked responses?" New topic
Author

How to avoid chunking / chunked responses?

James Hodgkiss
Ranch Hand

Joined: Jan 22, 2004
Posts: 401
When my servlet output is > 8kB (approx.), "chunked" transfer-encoding seems to come into force.

The problem is it's causing havoc with my client code (applet and midlet) over certain ISP connections.

Does anyone know how I can overcome this chunking?

I have tried calling response.setBufferSize(returnBytes.length) to try and get the servlet response sent a single chunk, but it makes no difference.

Any help would be much appreciated!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to avoid chunking / chunked responses?