[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Debugging web script?
- From: Gilles Ganault <gilles.ganault@...>
- Date: Thu, 30 Jan 2014 17:52:20 +0100
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.