Syntax for POST processing via CGI?
lists at futilism.com
Sat Jan 10 09:03:46 CST 2009
This seems to work well in my experience:
put postData() into tPostData
split tPostData by "&" & "="
-- postData is now an array of the form data
put empty into tData
put 0 into c
repeat while tData is empty and c < 20
read from stdin until empty
put it after tData
add 1 to c
wait 20 millisecs
note that it reads from stdin repeatedly until it's got something -
for some reason, the data doesn't always appear straight away.
On 10 Jan 2009, at 14:42, Bill Marriott wrote:
> Hi folks,
> Was working on a project this weekend and wondered if anyone had a
> bare-bones script for processing POST submissions with a CGI
> script? (Would
> prefer not to get complicated with using a library).
> For example, handling a form that submits via the POST method to
> - Bill
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
More information about the use-livecode