Commit Graph

168 Commits (1285ae42c5212557e423957e1c12810cfd726fda)

Author SHA1 Message Date
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 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 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 de4fc1e58b Fix. Build with libcurl 7.38.0 2014-09-10 17:20:13 +05:00
Alexey Melnichuk 4a7901fc8c Add. libcurl 7.38.0 constants 2014-09-10 16:44:10 +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 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 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 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 52834c0e01.
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
Alexey Melnichuk 3fba1d6b61 Update test 2014-09-07 16:08:25 +04:00
Alexey Melnichuk 1062805482 Fix. read callback hangup if it returns wrong value 2014-09-07 13:54:54 +04:00
Alexey Melnichuk 05272ea096 Fix. Easy cleanup unref wrong reference
Fix. Read buffer use size_t as offset
Change. Use httpbin.org as test server

```Lua
-- Test case for easy:close()
form = curl.form()
e = curl.easy{httpheader = {}}
e:close()
form:free()
```
2014-09-07 11:21:54 +04:00
Alexey Melnichuk f9db68d41e Update doc [ci skip] 2014-09-05 16:23:32 +05:00
Alexey Melnichuk e30104bc44 Fix. Progress function should return `1` to continue. 2014-09-05 16:18:36 +05:00
Alexey Melnichuk 05147e5b30 Fix. Raise error form progress function. 2014-09-05 15:55:23 +05:00
Alexey Melnichuk bd2cbd6010 Fix. Use `long` to save curl constants. 2014-09-05 15:20:43 +05:00
Alexey Melnichuk 7a1c663582 Update README.md [ci skip] 2014-09-05 15:03:55 +05:00
Alexey Melnichuk 79d9f8db60 Update README.md [ci skip] 2014-09-05 14:40:22 +05:00
Alexey Melnichuk 5cf2f412af Add. pause examples. 2014-09-05 13:15:59 +05:00
Alexey Melnichuk 990c1e6725 Fix. Lua-cURL multi iterator returns wrong easy objects for `done` and `error` records 2014-09-05 12:01:25 +05:00
Alexey Melnichuk 4a0fbd4095 Add. `easy:pause()` method 2014-09-05 11:29:08 +05:00