Re: Serving Files with AServe

Rudi Schlatte <[email protected]> Sat, 13 Sep 2003 20:29:26 +0200
Newsgroups gmane.lisp.open-source.franz
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On Samstag, September 13, 2003, at 02:10  Uhr, Tyler Palmer wrote:

> Users select which files from a list they want in an archive. When 
> they hit
> submit, a background process executes a shell command to zip the chosen
> files into an archive. Once the shell command returns, the URL for the 
> file
> is published and the user's web page refreshes to the file's URL which 
> cause
> the browser's save dialog to come up.

Why not simply set the response type to application/octet-stream and 
dump the file to the request-reply-stream of the request?  Has the same 
effect (except on Internet Explorer when it thinks it can out-guess the 
webserver about the file type); no need to publish a new URL for every 
file request.

Rudi


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (Darwin)

iD8DBQE/Y2IU765FppppCGcRAhnNAJ97r8G+RgkJdyeeEPeYl/Sk1DIDewCgrfj6
nZ/w9un2hoaH7yXtHc4G8MM=
=Wt15
-----END PGP SIGNATURE-----