W3C home > Mailing lists > Public > ietf-http-wg@w3.org > October 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@hplb.hpl.hp.com, www-talk@w3.org
X-Mailing-List: <http-wg@cuckoo.hpl.hp.com> archive/latest/1887
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 Naumann * ESO * mnaumann@eso.org 
** http://www.eso.org/~mnaumann/
Received on Friday, 8 November 1996 02:47:59 UTC

This archive was generated by hypermail 2.4.0 : Thursday, 2 February 2023 18:43:00 UTC