430 Commits

Author SHA1 Message Date
Alexey Melnichuk
f7926e5f1c Fix. find_ca_bundle should return nil if there no file. 2014-09-12 11:57:46 +05:00
Alexey Melnichuk
1285ae42c5 Add. Form class to Lua-cURLv3 interface.
See examples/cURLv3/post_form.lua
2014-09-12 11:46:43 +05:00
Alexey Melnichuk
5737bb797f Merge pull request #24 from moteus/master
Fix. Compile warning about unset CURLOPT_READDATA
2014-09-11 19:53:15 +05:00
Alexey Melnichuk
b38117b6c8 Merge pull request #23 from moteus/master
Fix. multi:info_read; Add. find_ca_bundle
2014-09-11 18:51:25 +05:00
Alexey Melnichuk
27ed52548f Fix. Compile warning about unset CURLOPT_READDATA 2014-09-11 18:49:27 +05:00
Alexey Melnichuk
fe66e7223b Add. find_ca_bundle function to cURL.utils module to find curl-ca-bundle.crt file 2014-09-11 17:28:42 +05:00
Alexey Melnichuk
1b88ec42b8 Fix. multi:info_read correctly remove easy handle. 2014-09-11 14:39:24 +05:00
Alexey Melnichuk
b4deff354a Merge pull request #22 from moteus/master
Fix. Remove easy handle from multi handle
2014-09-11 13:59:41 +05:00
Alexey Melnichuk
b2e6bcae4e Fix. add_handle/remove_handle on cURLv3
Add. Examples for cURLv3
2014-09-11 12:50:48 +05:00
Alexey Melnichuk
56a47e12d0 Fix. Remove easy handle from multi handle 2014-09-11 12:27:29 +05:00
Alexey Melnichuk
06df32877e Merge pull request #21 from moteus/master
Fix. Build with libcurl 7.38.0
2014-09-10 18:20:05 +05:00
Alexey Melnichuk
76e102b9a6 Merge pull request #20 from moteus/master
Add. libcurl 7.38.0 constants
2014-09-10 17:50:00 +05:00
Alexey Melnichuk
de4fc1e58b Fix. Build with libcurl 7.38.0 2014-09-10 17:20:13 +05:00
Alexey Melnichuk
6755621222 Merge pull request #19 from moteus/master
Fix. Link in README.md [ci skip]
2014-09-10 16:56:42 +05:00
Alexey Melnichuk
4a7901fc8c Add. libcurl 7.38.0 constants 2014-09-10 16:44:10 +05:00
Alexey Melnichuk
d7a9848539 Merge pull request #17 from moteus/master
Change. multi iterator returns response code as data for `done` row
2014-09-10 16:34:13 +05:00
Alexey Melnichuk
caa1b28158 Merge pull request #16 from moteus/master
Fix. Warnings on MinGW
2014-09-10 16:07:16 +05:00
Alexey Melnichuk
5c4373770e Fix. Link in README.md [ci skip] 2014-09-10 15:57:04 +05:00
Alexey Melnichuk
a50ffe9997 Reorganize examples tree. 2014-09-10 15:32:04 +05:00
Alexey Melnichuk
bf4b8b0b0b Change. multi iterator returns response code as data for done row 2014-09-10 15:20:58 +05:00
Alexey Melnichuk
a6b5498182 Merge pull request #15 from moteus/master
Implement iterator multi.iperform and method easy.perform for easy.
2014-09-10 15:09:05 +05:00
Alexey Melnichuk
1dbb374f1d Fix. Warnings on MinGW 2014-09-10 15:00:29 +05:00
Alexey Melnichuk
440de78300 Update lakefile [ci skip] 2014-09-10 14:43:45 +05:00
Alexey Melnichuk
65d5805852 Merge pull request #14 from moteus/master
Add. `cURL.safe` module.
2014-09-10 14:23:29 +05:00
Alexey Melnichuk
8d3c696c4c Implement iterator multi.iperform and method easy.perform for easy.
```Lua
local cURL = require("lcurl")
c1 = cURL.easy{url = "http://www.lua.org/"}
c2 = cURL.easy{url ="http://luajit.org/"}
m = cURL.multi()
  :add_handle(c1)
  :add_handle(c2)
for a,b,c in m:iperform() do ... end
```
2014-09-10 14:00:24 +05:00
Alexey Melnichuk
47c3774ead Merge pull request #13 from moteus/master
Rename module name in rockspec and update readme
2014-09-10 13:50:32 +05:00
Alexey Melnichuk
9127efffc2 Speedup test. 2014-09-10 13:21:28 +05:00
Alexey Melnichuk
338acbcd9c Fix. cURL.safe 2014-09-10 13:17:25 +05:00
Alexey Melnichuk
71c0deb903 Add. cURL.safe module. 2014-09-10 13:13:44 +05:00
Alexey Melnichuk
e0dfc3a490 Simplify code of cURL module. 2014-09-10 12:55:37 +05:00
Alexey Melnichuk
c2f8fc99f9 Fix. rockspec name in travis file 2014-09-10 12:44:03 +05:00
Alexey Melnichuk
73d1f31fa4 Update README.md 2014-09-10 12:33:02 +05:00
Alexey Melnichuk
980af35793 Rename rockspec file 2014-09-10 12:16:14 +05:00
Alexey Melnichuk
f48e72fe79 Update badge urls 2014-09-10 12:08:50 +05:00
Alexey Melnichuk
a9d1e24b3f Merge remote-tracking branch 'upstream/master' 2014-09-10 12:05:32 +05:00
Vadim A. Misbakh-Soloviov
673152f9e6 Makefile improvements
Signed-off-by: Vadim A. Misbakh-Soloviov <mva@mva.name>
2014-09-10 00:35:34 +07:00
Vadim A. Misbakh-Soloviov
4340c69bbe Makefaile improvements
Signed-off-by: Vadim A. Misbakh-Soloviov <mva@mva.name>
2014-09-09 23:45:27 +07:00
Alexey Melnichuk
c145842520 Merge branch 'master' of https://github.com/moteus/lua-lcurl 2014-09-09 11:44:09 +05:00
Alexey Melnichuk
a6511ba7d0 Add. Test compatibility safe and unsafe objects 2014-09-09 11:43:31 +05:00
Alexey Melnichuk
eef74c877b Merge pull request #12 from moteus/master
Update badge urls
2014-09-08 16:02:19 +05:00
Alexey Melnichuk
2c8592b215 Update README.md 2014-09-08 15:58:24 +05:00
Alexey Melnichuk
08c15d9857 Merge branch 'master' of https://github.com/moteus/lua-lcurl 2014-09-08 14:25:37 +05:00
Alexey Melnichuk
ab815645ed Add. Note about test fail. [ci skip] 2014-09-08 13:28:47 +04:00
Alexey Melnichuk
09cd9c8e96 Add. Copyright notes to source files. 2014-09-08 14:25:02 +05:00
Alexey Melnichuk
b575ca74c9 Revert "Change. Use httpbin.org to test"
This reverts commit 52834c0e019a636be0fac9c4589925b5b53cd293.
2014-09-08 13:09:50 +04:00
Alexey Melnichuk
52834c0e01 Change. Use httpbin.org to test 2014-09-08 13:09:08 +04:00
Alexey Melnichuk
b9e77f3ee6 Fix. SSL_ENABLE_XXX added in 7.36.0 2014-09-08 08:16:54 +00:00
Alexey Melnichuk
6ee9c8fc77 Add. Lua-cURL multi iterator returns also response row.
```Lua
for d, t in m:perform() do
  if t == 'response' and d == 200 then ... end
end
```
2014-09-08 11:18:30 +05:00
Alexey Melnichuk
f2ab8ee8a6 Fix. Return nil from read callback means EOF. 2014-09-08 10:45:52 +05:00
Alexey Melnichuk
c79e255662 Update test 2014-09-08 10:22:04 +05:00