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

[REBOL] Newbi CGI question

From: kpeters-vu::ware::com at: 4-Mar-2006 18:16

Hi all ~ Carl Sassenrath uses the following construct in his CG tutorial Creating and Processing Web Forms with CGI : switch system/options/cgi/request-method [ "POST" [ data: make string! 1020 buffer: make string! 16380 while [positive? read-io system/ports/input buffer 16380][ append data buffer clear buffer ] ] "GET" [data: system/options/cgi/query-string] ] data Goldman & Blanton simply use 'input to retrieve POSTed data switch system/options/cgi/request-method [ "POST" [data: input ] ] [ "GET" [data: system/options/cgi/query-string] ] data ] I am sure that Carl will have his reason for doing things the way he does - so my question is: Why would he choose the markedly more complex way of doing things in this case? Thanks for shedding some light on this, Kai