Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

HttpURLConnection and MultpartResponse Servlet  RSS feed

 
steve_ball
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Matthew Phillips
Ranch Hand
Posts: 2676
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
steve_ball,
Please read naming policy and re-register with a name that conforms. We would like you to be able to continue to post here at JavaRanch. Thanks.
Matthew Phillips
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!