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
-- 
To unsubscribe from the list, just send an email to 
lists at rebol.com with unsubscribe as the subject.

Reply via email to