[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: LuaCurl on Windows
- From: Luc1an0 <luc1an0@...>
- Date: Tue, 4 Sep 2007 20:38:37 +0200
Ok I found my problem...
I have to use "curl.easy_init()" and non "curl.new()"
But it seems not support scp ? I try this sample of code :
require("curl")
c=curl.easy_init
()
c:setopt(curl.OPT_URL,"scp://my.ip.address/~/myfile")
c:setopt(curl.OPT_USERPWD,"myaccount:mypwd")
code,errmsg=c:perfom()
print(code)
print(errmsg)
1
Unsupported protocol: scp
2007/9/4, Luc1an0 <luc1an0@free.fr>:
Hi all,
my question is a little bit too easy...
I try to use luacurl. Here a sample of a test code on a Windows XP (SP2), 32 bits:
require("curl")
print(curl.version())
print(
curl.version_info())
c=curl.new()
D:\freepops-luacurl-binary-win32-gnutls>lua5.1.exe test.lua
NOTE: you should run 'diskperf -y' to enable the disk statistics ==> What is this message ?
NOTE: you should run 'diskperf -y' to enable the disk statistics
libcurl/7.15.5 GnuTLS/1.4.4 zlib/1.2.3 ==> ok, curl is correctly loaded...
table: 009E6938 ==> idem..
lua5.1.exe: test.lua:5: attempt to call field 'new' (a nil value)
stack traceback:
test.lua:5: in main chunk
[C]: ?
I can't create a curl object...
If I try : require("luacurl") I have this message :
D:\freepops-luacurl-binary-win32-gnutls>lua5.1.exe test.lua
lua5.1.exe: test.lua:5: module 'luacurl' not found:
no field package.preload['luacurl']
no file '.\luacurl.lua'
no file 'D:\freepops-luacurl-binary-win32-gnutls\lua\luacurl.lua'
no file 'D:\freepops-luacurl-binary-win32-gnutls\lua\luacurl\init.lua'
no file 'D:\freepops-luacurl-binary-win32-gnutls\luacurl.lua'
no file 'D:\freepops-luacurl-binary-win32-gnutls\luacurl\init.lua'
no file '.\luacurl.dll'
no file 'D:\freepops-luacurl-binary-win32-gnutls\luacurl.dll'
no file 'D:\freepops-luacurl-binary-win32-gnutls\loadall.dll'
stack traceback:
[C]: in function 'require'
test.lua:5: in main chunk
[C]: ?
I take all packages version on the luacurl project page, but i can't find these files...
Someone could help me ?
Thanks all !
--
Frédéric ASTIC
06.25.91.07.04
--
Frédéric ASTIC
06.25.91.07.04