I am running a Lua HTTP client and the request leads to an error 400:
[root]# ./luatest
<!DOCTYPE HTML><html><head><title>400 Bad Request</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><link href="/imgs/errors.css" rel="stylesheet" type="text/css"></head>
<body><h1>Bad Request</h1>
<p>Your browser sent a request that this server could not understand.</p></body></html> 400 table: 0x1ba1f70 HTTP/1.1 400 Bad Request
[root]# cat luatest
#!/usr/bin/lua
local http = require("socket.http")
print(http.request("http://localhost/"))
[root]# curl "http://localhost"
<html> hi there </html> [root]#
G-WAN responds correctly to the curl client request, but it dies when requesting the same document from lua. Is there something we're missing, or is this just not going to work?