Alexey Melnichuk
9764a5055c
update test
2021-01-07 10:57:07 +03:00
Alexey Melnichuk
791c06e035
Add. Test
2021-01-07 10:16:34 +03:00
Alexey Melnichuk
b80dab0f12
Fix. Cleanup slists references in the reset function
2021-01-05 14:25:43 +03:00
Alexey Melnichuk
e70f6ac9a3
Add. Support CURLOPT_TRAILERFUNCTION
2019-04-06 19:20:38 +03:00
Alexey Melnichuk
886f696866
Add. Allow set null to callbacks.
2018-05-02 21:00:11 +03:00
Alexey Melnichuk
4a70bcbd2f
Add. Support set null as array in multi API
2018-05-01 20:37:51 +03:00
Alexey Melnichuk
e3b5c928b5
Add. Allow set NULL values explicitly.
2018-05-01 20:20:04 +03:00
Alexey Melnichuk
0fe9039186
Fix. Allows set empty array as slist options
2018-05-01 15:43:49 +03:00
Alexey Melnichuk
c0f7a3f18a
Replace
http://example.com to local pegasus server.
2017-10-19 18:06:32 +03:00
Alexey Melnichuk
4f75627e5c
Replace httpbin.org
to local pegasus server
2017-10-19 15:58:54 +03:00
Alexey Melnichuk
0e1eaa525a
Add. New cURL MIME API
2017-10-12 14:22:24 +03:00
Alexey Melnichuk
6426798c50
Unref callback context when call unsetopt function.
2017-07-17 13:14:43 +03:00
Alexey Melnichuk
5fae338602
Fix. easy:reset() returns correct value
2017-02-15 13:28:56 +03:00
Alexey Melnichuk
00c1bc4687
Fix. File url in test
2017-01-11 16:10:25 +03:00
Alexey Melnichuk
c5e4734f63
Update test.
2016-09-28 16:18:56 +03:00
Alexey Melnichuk
9d7fdac27c
Add. Module version info
2016-04-20 10:31:06 +03:00
Alexey Melnichuk
b5a69f87a9
Remove debug print
2016-04-15 16:34:16 +03:00
Alexey Melnichuk
c597521228
Change. Use string value to represent error category.
...
```Lua
err = curl.error(curl.ERROR_EASY, curl.E_OK)
-- err:category() == 'CURL-EASY'
-- tostring(err) == '[CURL-EASY][OK] No error (0)'
```
2016-04-15 16:19:57 +03:00
Alexey Melnichuk
30b9cb2420
Add. Support cURL 7.48.0
2016-04-15 15:09:11 +03:00
Alexey Melnichuk
a038558b44
Fix. call all callback from coroutine where perform was called.
2016-04-07 16:59:50 +03:00
Alexey Melnichuk
7eeaeb3ce6
Fix. Skip pause test because it can behave differently on different OS/cURL version.
2015-06-15 11:46:00 +04:00
Alexey Melnichuk
b90485619d
Add. easy/multi handle support user values.
...
```Lua
f = io.open(...)
e = curl.easy():setdata(f)
...
-- when easy done
e:getdata():close()
```
2014-12-22 12:43:55 +04:00
Alexey Melnichuk
15f4b2d53a
Fix. Supports Lua 5.3.beta
2014-11-26 13:58:56 +04:00
Alexey Melnichuk
764b071989
Change. cURL wrapper store proxy functions in class not in object.
...
Fix. Test for stream reader.
2014-09-19 11:25:34 +05:00
Alexey Melnichuk
aff3042434
Change. Returns nothing form reader callback means EOF.
...
Change. multi:iperform() remove easy handle when it done.
2014-09-15 13:17:13 +05:00
Alexey Melnichuk
e6c2ffce5c
Add. test to set/unset postfields
2014-09-15 10:57:33 +05:00
Alexey Melnichuk
ab815645ed
Add. Note about test fail. [ci skip]
2014-09-08 13:28:47 +04: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
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
e30104bc44
Fix. Progress function should return 1
to continue.
2014-09-05 16:18:36 +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
db7e541e09
Fix. Remove values from storage on unset.
...
Fix. Set callback with context.
2014-09-03 11:16:10 +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