PDA

View Full Version : socket.http error



dsmes
February 24th, 2008, 04:50 PM
In G4 I used to prefix scripts with:
http = require("socket.http")and use this when calling a web page:

Page = socket.http.request(url)In G5 when I do this I get the following error in the Lua interactive console:
...ram Files\Promixis\Girder5\\luascript\compat-5.1.lua:169: module `socket.http' not found
stack traceback:
[C]: in function `error'
...ram Files\Promixis\Girder5\\luascript\compat-5.1.lua:169: in function <...ram Files\Promixis\Girder5\\luascript\compat-5.1.lua:160>
...ram Files\Promixis\Girder5\\luascript\compat-5.1.lua:191: in function `require'
[string "Doug2.gml:\Init Stuff\Startup Stuff Script"]:4: in main chunk
I've tried various other ways resolve this but can't help but think I'm doing something fundamentally wrong... but I don't know what. Any ideas???

Rob H
February 25th, 2008, 12:54 AM
Can you confirm that you have a luascript\socket folder? And that there's an http.lua in it?

dsmes
February 25th, 2008, 03:02 AM
The luascript\socket folder is gone!
I've replaced it with a backup copy. Thanks for the help.