wathiq-iq / luaforwindows

Automatically exported from code.google.com/p/luaforwindows
1 stars 0 forks source link

examples\luasocket\cddb.lua could not be use #1

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. run cddb.lua like: cddb.lua jass 333 cddb.org
2.
3.

What is the expected output? What do you see instead?
D:\Program Files\Lua\5.1\lua.exe: D:\Program
Files\Lua\5.1\examples\luasocket\cd
db.lua:35: attempt to call field 'get' (a nil value)
stack traceback:
        D:\Program Files\Lua\5.1\examples\luasocket\cddb.lua:35: in main chunk
        [C]: ?

What version of the product are you using? On what operating system?
Lua_v5.1.4.21

Please provide any additional information below.
cddb.lua:35:local body, headers, code = http.get(url)

if I run this script:
"
local http = require("socket.http")
table.foreach(http,print)
"
will get:(not get method)

>lua -e "io.stdout:setvbuf 'no'" "httpt2.lua" 
USERAGENT   LuaSocket 2.0.2
PORT    80
_NAME   socket.http
_PACKAGE    socket.
request function: 00429948
_M  table: 00413138
open    function: 00413378
TIMEOUT 60
>Exit code: 0

Original issue reported on code.google.com by zhangchu...@gmail.com on 12 Dec 2008 at 6:16

GoogleCodeExporter commented 8 years ago
I think this is because the cddb.org shut down that specific service. So the 
example has been removed.

Original comment by rpusz...@gmail.com on 6 Jun 2011 at 1:54