SENDFILE will ...
selector
(the file that the selector maps to is assumed to be
relative to a possibly host-specific data directory or relative to a
possibly host-specific virtual directory).
selector
is augmented.
That is, if the client
killed the connection half way through, the count will not
be augmented.
This does require a browser that can handle multipart-mixed documents -- for example, Netscape 2.0 and above.
Example: /SENDFILE?file=/dir1/hello.htm&file=/download/spiffy.zip&file=/dir1/thanks.htm.First, /dir1/hello.htm is sent to the client; which is immediately followed by /download/spiffy.zip (the client will almost certainly be asked to provide a name to save spiffy.zip as). After spiffy.zip has been transmitted, /dir1/thanks.htm will be sent.
Note that a single log file is used, so information on all requests using SENDFILE will be commingled. That is, no attempt is made to keep information seperated on a selector (or file) specific basis.
FORCE=1
, (or FORCE=TEXT
) SENDFILE will
assume that all files are of mime-type text/plain. This
can be a useful trick (it tricks the client into displaying everything
as a text file), but if .GIF (or other non-text files) are chosen,
garbage will be displayed ( use this option with discretion)!
FORCE=2
(or FORCE=BIN
), SENDFILE will
assume that all files are of mime-type application/octet-stream. This
can be used to induce a browser to save a file to disk (rather then display it).