[REBOL] Re: CGI and binary files
From: gabriele::colellachiara::com at: 5-Jul-2005 12:01
On Tuesday, July 5, 2005, 11:39:54 AM, you wrote:
CR> print "Content-Type: binary/octet-stream^/"
CR> file: read/binary %path-to-file
CR> print file
set-modes system/ports/output [binary: yes]
insert system/ports/output file
You should probably emit Content-Length too, so that the user has
a progress bar while downloading.
Gabriele Santilli <[gabriele--rebol--com]> --- http://www.rebol.com/
Colella Chiara software division --- http://www.colellachiara.com/