lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi Guys,

  I have a little problem here. I am trying to download the following
  file:

  http://bessems.biz/girder/expgr.php?dwn=5

  To do this I am using the following code:

http = require("socket.http")
print(http.request( { url="http://bessems.biz/girder/expgr.php?dwn=5"; }))

  The library is LuaSocket 2.0 beta 3 on lua 5.0.2. The error that I
  get is:

socket/url.lua:128: bad argument #1 to `gsub' (string expected, got table)

  Now if I remove the question mark the library doesn't complain
  (of course the download fails but that is besides the point). How
  should this work?

Thanks!

- Ron