Alexey Melnichuk
fcae9eabc8
Add. form:add_stream() method. (See #1 )
2014-09-02 14:13:11 +05: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
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
Alexey Melnichuk
ce7b3aab6b
Merge pull request #4 from zhaozg/master
...
fix warning on msvc
2014-08-29 13:20:15 +00:00
zhaozg
59dce2624f
fix warning on msvc
2014-08-29 20:25:59 +08:00
Alexey Melnichuk
e5055b5d19
Add. Export all fields from vesion info
2014-08-29 16:09:50 +05:00
Alexey Melnichuk
6e41b5cc36
Implement setopt_httpauth
in Lua-cURL interface.
2014-08-29 15:11:38 +05:00
Alexey Melnichuk
917ca411c5
Implement setopt_proxytype
in Lua-cURL interface.
...
Add. PROXY_XXX constants.
2014-08-29 15:06:36 +05:00
Alexey Melnichuk
91007775d8
Update gitignore
2014-08-29 14:02:45 +05:00
Alexey Melnichuk
f70b780a6c
Fix. HTTPAUTH option type.
2014-08-29 13:11:14 +05:00
Alexey Melnichuk
9434c99c95
Add. Install lcurl.cURL
module in rockspec
2014-08-29 12:29:23 +05:00
Alexey Melnichuk
5974af17ea
Add. examples for Lua-cURL
2014-08-29 12:07:34 +05:00
Alexey Melnichuk
40e0b2668e
Add. Implementation of Lua-cURL http://msva.github.io/lua-curl
2014-08-29 11:55:04 +05:00
Alexey Melnichuk
349129bf95
Add. some examples
2014-08-29 10:47:29 +05:00
Alexey Melnichuk
5305ba55ac
Port some examples form Lua-cURL
2014-08-28 18:55:14 +05:00
Alexey Melnichuk
06ca940e18
Update README.md [ci skip]
2014-08-28 17:50:33 +05:00
Alexey Melnichuk
43af9c48a5
Add. CRLFILE option.
2014-08-28 17:47:50 +05:00
Alexey Melnichuk
6d3a407622
Add. DNS_SERVERS option.
2014-08-28 17:44:55 +05:00
Alexey Melnichuk
bafd56bb2f
Add. EGDSOCKET, ISSUERCERT and KRBLEVEL options.
2014-08-28 17:43:06 +05:00
Alexey Melnichuk
f5e1e00b20
Add. RANDOM_FILE option.
2014-08-28 17:37:50 +05:00
Alexey Melnichuk
d28c9e75d6
Add. TLSAUTH_TYPE option.
2014-08-28 17:12:05 +05:00
Alexey Melnichuk
ad9116ede5
Add. CAINFO, CAPATH and CERTINFO options and SSLVERSION_XXX constants.
2014-08-28 17:05:00 +05:00
Alexey Melnichuk
4510730e37
Fix. Wrong set headers on form:add_file() method.
...
Add. SSL_XXX options.
2014-08-28 15:59:18 +05:00
Alexey Melnichuk
a4d7806f8f
Add. lakefile
2014-08-28 14:52:46 +05:00
Alexey Melnichuk
a695b0c5a0
Update rockspec
2014-08-28 14:39:22 +05:00
Alexey Melnichuk
23f51ab142
Update doc
2014-08-28 14:09:54 +05:00
Alexey Melnichuk
aab3043323
Fix. Implement wait
method based on select
function.
2014-08-28 14:06:24 +05:00
Alexey Melnichuk
ecac8bba1a
Add. setopt_share
method to easy interface.
2014-08-28 12:50:04 +05:00
Alexey Melnichuk
18c97805c1
Add. setopt
method to share interface
2014-08-28 12:40:13 +05:00
Alexey Melnichuk
7babe0c872
Update doc
2014-08-28 11:53:35 +05:00