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

[REBOL] CGI: reading POST-method data with read-io Re:(6)

From: holger:rebol at: 28-Aug-2000 16:37

On Fri, Aug 25, 2000 at 04:51:17PM -0800, [tim--johnsons-web--com] wrote:
> Hello: > When Holger speaks, I pay attention. I have the following line > of code for reading POST input from CGI as follows: > ;> either tmp > 0 > [ > buffer: make string! (tmp + 10) ; allocate storage space > while [tmp > 0] ; and read > ; I think Holger suggests this is not good: > [tmp: tmp - read-io system/ports/input buffer tmp] > return buffer > ] > What would be a safe alternative, please?
For stdin/out you may still have to use read-io to be fully interoperable across platforms. That's because REBOL does not yet fully support non-socket streams at the port level, e.g. within a 'wait block. That is likely to change in the future though. My point about not using read-io mostly refered to TCP streams. -- Holger Kruse [holger--rebol--com]