Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: CGI and binary files

From: gabriele::colellachiara::com at: 5-Jul-2005 12:01

Hi Carl, On Tuesday, July 5, 2005, 11:39:54 AM, you wrote: CR> print "Content-Type: binary/octet-stream^/" application/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. Regards, Gabriele. -- Gabriele Santilli <[gabriele--rebol--com]> --- Colella Chiara software division ---