File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Multiple files download in 1 http request Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Multiple files download in 1 http request" Watch "Multiple files download in 1 http request" New topic

Multiple files download in 1 http request

Susan Atmaja

Joined: Feb 02, 2004
Posts: 2
I need client to be able to download multiple files in 1 http request, without using javascript, just pure html.
I know it can be zipped, but my client doesn't allow that to be implemented. In addition to that, the files also need to be downloaded as separate files (can't be combined to just 1 file).
I believe it would involve setting of the http header from the servlet. Please advise. Thanks.
David O'Meara

Joined: Mar 06, 2001
Posts: 13459

Do they allow anything? Sounds a bit 'pointy haired' to me. Tell them to get over the 'must happen in a single request' requirement then use JavaScript.
Obviously my feelings are that is an unreasonable request. Obviously you've seen the thread here. I'm not aware of anything you can do with the header that will help you.
I agree. Here's the link:
subject: Multiple files download in 1 http request