Forums Register Login

Setting Content-Length in servlet

+Pie Number of slices to send: Send
My midlet communicates with a servlet. When I set the Content-Length header in the servlet response, the midlet occurs much larger delays in getting the data from the servlet.

Has anyone else had found this and know why it is? Is the norm just to not bother setting Content-Length?

Cheers,
James
joke time: What is brown and sticky? ... ... ... A stick! Use it to beat this tiny ad!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 737 times.
Similar Threads
when to use setContentLength()
HttpConnection and POST
Sending a photo through a Servlet.
Not showing up pdf
Problem with InputStream.read(bytes)
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 18:11:08.