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
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
Alexey Melnichuk
6453a60c4a
Update test
2014-09-04 18:16:33 +05:00
Alexey Melnichuk
8f4a0980ca
Fix. Returns nil from write callback treat as write error.
2014-09-04 18:11:03 +05:00
Alexey Melnichuk
3d34167f92
Update test
2014-09-04 16:00:34 +05:00
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