Alexey Melnichuk
e8c76b223b
Update test
2014-09-04 15:36:32 +05:00
Alexey Melnichuk
08dd077511
Update test.
2014-09-04 15:15:31 +05:00
Alexey Melnichuk
042a7f4a60
Fix. filename
and type
arguments in form:add_stream
may be nil.
2014-09-04 15:03:11 +05:00
Alexey Melnichuk
2dc0cf7fb0
Fix. type
argument in form:add_buffer
may be nil.
...
Add. Form tests.
2014-09-04 14:46:10 +05:00
Alexey Melnichuk
f0c8ca020f
Change. optional argument for easy:perform in Lua-cURL interface.
2014-09-04 13:07:54 +05:00
Alexey Melnichuk
933c84db7d
Merge branch 'master' of https://github.com/moteus/lua-lcurl
2014-09-04 12:51:42 +05:00
Alexey Melnichuk
955e6b7ece
Add. Support streams to Lua-cURL interface. (See #1 )
2014-09-04 12:51:11 +05:00
Alexey Melnichuk
ca460ecf5f
Merge pull request #10 from zhaozg/master
...
update makefile for linux
2014-09-03 14:18:30 +00:00
zhaozg
3610d064a6
update makefile for linux
...
success build with luajit and lua
fix a warning miss string.h
2014-09-03 21:36:57 +08:00
zhaozg
811b723914
Merge branch 'master' of https://github.com/moteus/lua-lcurl
2014-09-03 21:09:31 +08:00
Alexey Melnichuk
bb4ed6d1fc
Add. HTTP_VERSION_XXX constants
2014-09-03 15:25:30 +05:00
zhaozg
39f219e4b0
Merge branch 'master' of https://github.com/moteus/lua-lcurl
2014-09-03 17:18:29 +08:00
Alexey Melnichuk
c231e6bc25
Fix. Lua-cURL/browser.lua example compatibility with lcurl.cURL
2014-09-03 12:45:12 +05:00
Alexey Melnichuk
9f0cc95fa0
Add. Lua-cURL/browser.lua example
2014-09-03 12:41:22 +05:00
Alexey Melnichuk
21ab3f9729
Fix. Create share object in Lua-cURL interface.
2014-09-03 12:17:00 +05:00
Alexey Melnichuk
2da7106ebb
Change. Unset httppost options with stream also unset readfunction.
2014-09-03 11:33:00 +05:00
Alexey Melnichuk
db7e541e09
Fix. Remove values from storage on unset.
...
Fix. Set callback with context.
2014-09-03 11:16:10 +05:00
Alexey Melnichuk
b53a4008ba
Fix. Writer callbacks return size_t
2014-09-03 10:38:54 +05:00
Alexey Melnichuk
79db0acd4b
Fix. read callbacks return size_t.
...
Fix. export unsetopt.
Fix. form:add_file use file name.
2014-09-03 10:24:17 +05:00
zhaozg
95f6140087
Merge branch 'master' of https://github.com/moteus/lua-lcurl
2014-09-03 09:45:02 +08:00
Alexey Melnichuk
1bdbac4bc9
Add. easy:unsetopt
method. (See #3 )
2014-09-02 18:34:20 +05:00
Alexey Melnichuk
b13b5dd2b3
Update test.
2014-09-02 16:44:00 +05:00
Alexey Melnichuk
cf3c9900c0
Fix. Set readfunction for easy object.
2014-09-02 16:21:07 +05:00
Alexey Melnichuk
389e31a8d5
Change. Signature for form:add_stream()
(See #1 )
2014-09-02 15:50:59 +05:00
Alexey Melnichuk
fcae9eabc8
Add. form:add_stream() method. (See #1 )
2014-09-02 14:13:11 +05:00
zhaozg
2870203eec
Merge branch 'master' of https://github.com/moteus/lua-lcurl
2014-09-01 22:41:25 +08:00
Alexey Melnichuk
1acb9b9de1
Fix. Use incorrect storage for values.
2014-09-01 16:33:28 +05:00
Alexey Melnichuk
21106ca7bd
Fix. Reset options will also reset value in storage.
...
```Lua
-- Fixed
e:setopt_httppost(curl.form())
e:setopt_httppost(curl.form())
-- `e` store 2 form object and the will alive until `e` is alive.
```
2014-09-01 16:19:51 +05:00
Alexey Melnichuk
ee905b4209
Add. easy escape test.
2014-09-01 15:34:42 +05:00
Alexey Melnichuk
7aa70f9a59
Change. Write callback can return any true value (except numbers).
...
For example in Lua 5.2 file:write method returns `self`.
``` Lua
function write(str)
return #str - 1 -- this is error (number less than #str)
end
function write(str)
return {} -- this is pass
end
```
2014-09-01 14:53:25 +05:00
Alexey Melnichuk
f7d21361d2
Change. Easy/Share/Multi allow set multiple options at once.
2014-09-01 14:20:07 +05:00
Alexey Melnichuk
144ceeb123
Change. Easy ctor and setopt
method could use table to set multiple options.
...
```Lua
c = curl.easy{
url = 'http://example.com ',
[curl.OPT_VERBOSE] = true,
}
```
2014-09-01 13:38:34 +05:00
zhaozg
eefa1bedbf
update
2014-09-01 16:34:23 +08:00
zhaozg
d2a9ba1701
update
2014-09-01 16:30:45 +08:00
Alexey Melnichuk
fc7a570060
Update. Object wrapper int examples.
2014-09-01 11:57:55 +05:00
Alexey Melnichuk
ef25a2f444
Add. category
method to error object.
2014-09-01 11:39:11 +05:00
Alexey Melnichuk
3ac4b54851
Add. Export error classes (ERROR_EASY, ERROR_MULTI)
...
```Lua
e = curl.error(curl.ERROR_EASY, curl.E_UNKNOWN_OPTION)
```
2014-09-01 11:23:11 +05:00
Alexey Melnichuk
858746fe00
Fix. Windows detection.
2014-09-01 10:27:18 +05:00
Alexey Melnichuk
0b398a6727
Change. info_read
could automatically remove easy handle if it done.
2014-09-01 10:20:25 +05:00
Alexey Melnichuk
dcc027c29a
Fix. version_info
returns protocol names in upper case.
2014-09-01 10:14:00 +05:00
Alexey Melnichuk
5fc09fae79
Fix. Handle CURLM_CALL_MULTI_PERFORM to support libcurl < 7.20.0
2014-09-01 09:41:29 +05:00
Alexey Melnichuk
83595d7bea
Merge pull request #9 from zhaozg/master
...
Fix. Build with libcurl 7.19.7 (Close #8 )
2014-08-31 08:29:46 +00:00
zhaozg
65ffcf0388
Add Makefile on Linux
2014-08-31 16:11:47 +08:00
root
3382feb5b7
Fix. Build with old version libcurl (7.19.7) (3)
...
according to symbols-in-versions in curl.
2014-08-31 16:09:14 +08:00
Alexey Melnichuk
63f8f29cf7
Fix. Build with old version libcurl (7.19.7) (2)
2014-08-31 11:33:10 +04:00
Alexey Melnichuk
f00dbb26ed
Fix. Build with old version libcurl (7.19.7)
2014-08-31 10:03:06 +04:00
Alexey Melnichuk
0191e5cdec
Merge pull request #7 from zhaozg/master
...
fix mem leaks bug, unref cb data when easy/multi cleanup
2014-08-30 01:23:59 +00:00
George Zhao
8927ced6dc
Update lcmulti.c
2014-08-30 08:54:39 +08:00
zhaozg
f2a0b970fa
clean cb ref object in multi object
2014-08-30 08:37:10 +08:00
zhaozg
d7cfd66017
fix mem leaks bug, unref data when easy handed close
2014-08-30 08:27:20 +08:00