Hello

Nothing is displayed when calling the following Lua script from a form:

*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)

mg.write(mg.request_info.request_method)
mg.write(mg.request_info.remote_ip, ':', mg.request_info.remote_port)
mg.write(mg.request_info.uri)
mg.write(mg.request_info.http_version)
for name, value in pairs(mg.request_info.http_headers) do
 mg.write(name, ':', value, '\n')
end
?>

The page is blank, and no error message is available in the console.

The documentation <http://cesanta.com/docs.html?LuaSqlite.md> mentions 
"mg.onerror(msg)": Would this help investigate, and if yes, how?

Thank you.

-- 
You received this message because you are subscribed to the Google Groups 
"mongoose-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mongoose-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to