lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hello

	When run on a Debian appliance, the following script prints nothing
on the screen, and no error message is displayed in the web server's
console:

============ form.html
<form action="cgi.lp" method="POST">
        <input type=text" name="dummy">
        <input type="submit" value="Submit">
</form>

============ cgi.lp
HTTP/1.0 200 OK
Content-Type: text/plain

<?
local post_data = ''
if mg.request_info.request_method == 'POST' then
	post_data = mg.read()
end
mg.write(post_data)
?>
============ 

Is there a way to investigate?

Thank you.