W3C home > Mailing lists > Public > www-talk@w3.org > November to December 1996

Re: HTTP header suggestion/request

From: Michael Naumann - ESO Garching +49 89 32006 430 <mnaumann@eso.org>
Date: Fri, 08 Nov 1996 11:38:25 +0100
Message-ID: <32830DA1.709B@eso.org>
To: MegaZone <megazone@livingston.com>
CC: http-wg@cuckoo.hpl.hp.com, www-talk@w3.org
MegaZone wrote:
> [...]
> That form has one ACTION.  On that form you can check a box to download
> code.tar, code.tar.Z, or code.tar.gz.  The user picks the option they want
> then submits the form to the CGI.  Since the form has one ACTION only one
> CGI can be called, and since there are 3 possibly names putting an extension
> on the ACTION will be wrong for any 2 of them.

you could use the Content-Disposition: header field
(beware: it's not in the http-v11-spec07 but borrowed
from MIME) ie send

  Content-Type:        application/octet-stream
  Content-Disposition: attachment; filename=code.tar

from your ACTION script.

<michael

** Michael Naumann * ESO * mnaumann@eso.org 
** http://www.eso.org/~mnaumann/
Received on Friday, 8 November 1996 05:38:41 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 27 October 2010 18:14:20 GMT