posted 16 years ago
I am wondering if it is possible to write a servlet and java client app that communicate multiple objects over a single connection. I have written code that will pass a single mime type back and forth, but I was hoping to write multiple mime/types from my servlet to a client using the HttpURLConnection. So far, the URLConnection doesn't seem to understand when I try to set the content type the second, third, fourth time. Is this even possible or are browsers the only clients that understands multipart response?