16 Commits

Author SHA1 Message Date
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
db7e541e09 Fix. Remove values from storage on unset.
Fix. Set callback with context.
2014-09-03 11:16:10 +05:00
Alexey Melnichuk
cf3c9900c0 Fix. Set readfunction for easy object. 2014-09-02 16:21:07 +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
ef25a2f444 Add. category method to error object. 2014-09-01 11:39:11 +05:00
Alexey Melnichuk
de4e4ccb30 Fix. Echo libcurl version in test. 2014-08-26 13:53:45 +05:00
Alexey Melnichuk
93d9142cf6 Fix. Support libcurl >= 7.25 2014-08-26 13:28:34 +05:00
Alexey Melnichuk
ea7a282218 Add. Travis files 2014-08-26 12:40:18 +05:00