Copy httpd.lua from lua-exec-examples branch.


git-svn-id: https://svn.nmap.org/nmap@32165 e0a8ed71-7df4-0310-8962-fdc924857419
Replace io.stdin:read("*line") with a custom read_line function.

git-svn-id: https://svn.nmap.org/nmap@32168 e0a8ed71-7df4-0310-8962-fdc924857419
Send 414 if the first line is longer than 8096 bytes.

git-svn-id: https://svn.nmap.org/nmap@32169 e0a8ed71-7df4-0310-8962-fdc924857419
Make conditional.lua use read_line too.

git-svn-id: https://svn.nmap.org/nmap@32170 e0a8ed71-7df4-0310-8962-fdc924857419
Don't consider "\r" an end of line.

git-svn-id: https://svn.nmap.org/nmap@32171 e0a8ed71-7df4-0310-8962-fdc924857419
Fix a typo.

git-svn-id: https://svn.nmap.org/nmap@32172 e0a8ed71-7df4-0310-8962-fdc924857419
Fix echo.lua bug related to how io.stdin:read(n) works.

git-svn-id: https://svn.nmap.org/nmap@32173 e0a8ed71-7df4-0310-8962-fdc924857419