Hi Nick,
I have one addition to Roland's comments.
b) Don't call setContentLength, or set it to -1 in a
FilePart object. This should work fine with HTTP/1.1
and chunked encoding, but also with HTTP/1.0 and
no chunked encoding. Since the server does not know
the content length in advance, it has to
Hi Nick,
I didn't try this out, but here are a few suggestions:
a) HttpClient already implements chunked encoding in
both directions. Have a look at the classes, maybe you
can use them on the server side as well.
b) Don't call setContentLength, or set it to -1 in a
FilePart object. This should w
Roland,
Thanks, I am writing my own server doGet and doPost methods using
HttpServlet, but for some reason the servlet must be defaulting to HTTP/1.0.
Therefore I changed my subclass code with the setHttp11 method and the
connections seem to be closing after each upload and is not giving me the