[10390] in www-talk@info.cern.ch

home help back first fref pref prev next nref lref last post

Re: HTTP header suggestion/request

daemon@ATHENA.MIT.EDU (Michael Naumann - ESO Garching +49)
Fri Nov 8 05:40:27 1996

Date: Fri, 08 Nov 1996 11:38:25 +0100
From: Michael Naumann - ESO Garching +49 89 32006 430 <mnaumann@eso.org>
To: MegaZone <megazone@livingston.com>
Cc: http-wg@cuckoo.hpl.hp.com, www-talk@w3.org
Resent-From: 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/


home help back first fref pref prev next nref lref last post