Re: HTTP header suggestion/request

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 UTC