• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

making a download servlet to service download managers

 
Doyle Matt
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi i have this code that sends a file to a requestor. the problem with this one is that it doesn't support download managers. any ideas on how to support download managers?

 
ak pillai
author
Ranch Hand
Posts: 288
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try setting the contentent-type and the content-disposition prior to acquiring a writer. First, set the Content-Type header to a nonstandard value such as application/x-download. It's very important that this header is something unrecognized by browsers because browsers often try to do something special when they recognize the content type.


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic