|
On Sat, Jul 12, 2014 at 5:41 PM, Milind Gupta <milind.gupta@gmail.com> wrote:
Hi,If I do the following:It prints the correct HTML if I use luasocket 2.0 but if I use luasocket 3.0 it prints out this:local h = require "socket.http"
print(h.request([[http://www.amved.com/milindsweb/tableDB.html]]))
Is this a bug or something needs to be done differently?<!-- pageok --> <!-- managed by puppet --> <html> <pre>pageok</pre> </html> 200 table: 0092BD00 HTTP/1.1 200 OK
Thanks,
MilindI didn't know there *was* a LuaSocket 3.0.My guess would be it's not setting the Host HTTP header, so you're getting some default page.
--
Sent from my Game Boy.