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

[REBOL] Re: cgi binary data xfer...

From: g:santilli:tiscalinet:it at: 17-Sep-2003 9:51

Hi Maxim, On Tuesday, September 16, 2003, 7:32:58 PM, you wrote: MOA> Q1: how do I initiate a binary xfer in cgi/html, so MOA> that instead of displaying binary data as a lump of text in MOA> the browser, I get a file transfer dialog. prin "Content-Type: application/octet-stream^M^J^M^J" instead of: prin "Content-Type: text/html^M^J^M^J" MOA> Q2: how do I make 'print work like a write/binary so MOA> that the read data actually stays binary... set-modes system/ports/output [binary: yes] insert system/ports/output read/binary file Regards, Gabriele. -- Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer Amiga Group Italia sez. L'Aquila --- SOON: