Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Commits on Sep 9, 2014
  1. @msva

    Update README

    msva authored
Commits on Sep 4, 2014
  1. @moteus

    Update url in readme.

    moteus authored
Commits on Aug 26, 2014
  1. @msva

    ifdefs to avoid compilation breakage when using old cURL. Patch for #16.

    msva authored
    Signed-off-by: Vadim A. Misbakh-Soloviov <mva@mva.name>
Commits on Aug 18, 2014
  1. @msva

    Progress handling (fixes #14). To be tested.

    msva authored
    Signed-off-by: Vadim A. Misbakh-Soloviov <mva@mva.name>
  2. @msva

    support for LuaJIT-2.1 + LuaJIT built with lua52compat

    msva authored
    Signed-off-by: Vadim A. Misbakh-Soloviov <mva@mva.name>
  3. @msva

    Merge pull request #11 from caguado/fix/authn

    msva authored
    Add authentication options and build in RHEL6
    
    (Merging this, since no one complained)
Commits on Jun 6, 2014
  1. @caguado

    Amend registration logic of supported protocols

    caguado authored
    Decide whether to support a protocol based on its availability in
    the specified libcurl implementation.
    
    Signed-off-by: Carlos Aguado Sanchez <carlos.aguado@epfl.ch>
Commits on Jun 1, 2014
  1. @caguado

    Add options to handle HTTP user authentication

    caguado authored
    Add the CURL options for managing the username and password. In
    particular:
    - CURLOPT_USERNAME
    - CURLOPT_PASSWORD
    
    This will allow the usage for HTTP authentication schemes such as basic
    HTTP authentication or GSSAPI/SPNEGO.
    
    Signed-off-by: Carlos Aguado Sanchez <carlos.aguado@epfl.ch>
  2. @caguado

    Add supported protocols based on libcurl version

    caguado authored
    Extend the supported protocols based on the major and minor versions of
    the libcurl development libraries in the system.
    
    RHEL6 is based on 7.19 and hence does not contain some of the protocols
    added in bd5c53b.
    
    Signed-off-by: Carlos Aguado Sanchez <carlos.aguado@epfl.ch>
Commits on May 24, 2014
  1. @msva

    Merge pull request #10 from FunkyAss/fix-callback

    msva authored
    Fix segmentation fault and attempt to call nil in callbacks
Commits on May 23, 2014
  1. @FunkyAss

    callbacks: fix attempt to call a nil value

    FunkyAss authored
    Performing a request with custom callbacks that returns anything but
    CURLE_OK, then performing a request with default callbacks causes lua to
    call a nil value:
        -- assume the easy handle is properly set up
        easy:setopt_url("http://mispelled-domain/")
        -- curl_perform will return CURLE_COULDNT_RESOLVE_HOST
        pcall(easy.perform, easy,
            {writefunction = function(chunk) return end}
        )
        -- a totally legit url
        easy:setopt_url("http://example.com")
        easy:perform()
        -- lua: attempt to call a nil value
    
    When curl_easy_perform returns anything but CURLE_OK, l_easy_perform
    calls luaL_error, which ends doing a longjump. The callbacks cleanup
    never happens, leaving the lua-curl "callback handlers"
    (l_easy_writefunction, readfuntion, headerfunction) registered.
    The subsequent request doesn't register any callback, so an empty table
    is pushed on the stack and the callback handler will call a nil value.
    
    Signed-off-by: Davide "FunkyAss" Del Zompo <davide.delzompo@gmail.com>
  2. @FunkyAss

    callbacks: fix segmentation fault

    FunkyAss authored
    Performing a request defining custom callbacks, then performing another
    request without callbacks (i.e. using libcurl default callbacks) causes
    a segmentation fault:
        -- assume the easy handle is properly set up
        easy:perform{writefunction = function(chunk) io.write(chunk) end}
        -- the answer is written to stdout --
        easy:perform()
        -- segmentation fault (in fwrite () from libc)
    
    The above segmentation fault happens because the data pointer, set with
    CURLOPT_WRITEDATA (CURLOPT_FILE) in curl_easy_setopt, for the write
    function (fwrite for default callbacks) is not properly cleaned up and
    the lua_State from the previous callback is passed.
    
    Similar faults will show up with CURLOPT_WRITEHEADER and
    CURLOPT_READDATA (CURLOPT_INFILE).
    
    In order to properly restore the default callback behaviours:
        - the "write function" data pointer must be set back to stdout;
        - the "header function" data pointer must be set to NULL;
        - the "read function" data pointer must be set to stdin;
    About the values for data pointers: despite the libcurl documentation
    says nothing about their default values, reading libcurl source code
    leads to stdout, stdin and NULL (actually 0x0).
    
    Signed-off-by: Davide "FunkyAss" Del Zompo <davide.delzompo@gmail.com>
Commits on May 20, 2014
  1. @msva

    Merge pull request #9 from FunkyAss/protos

    msva authored
    Add support for CURLOPT_PROTOCOLS and CURLOPT_REDIR_PROTOCOLS
Commits on May 19, 2014
  1. @FunkyAss

    setopt: support PROTOCOLS and REDIR_PROTOCOLS

    FunkyAss authored
    The second argument of both the new functions, setopt_protocols and
    setopt_redir_protocols, is a number representing a bitmask of protocols
    (see libcurl documentation for curl_easy_setopt).
    
    Signed-off-by: Davide "FunkyAss" Del Zompo <davide.delzompo@gmail.com>
  2. @FunkyAss

    Expose CURLPROTO_* values in protocols table

    FunkyAss authored
    Add a table "protocols" in the module with protocol names as keys and
    CURLPROTO_* defines from curl.h as values. Those values are meant to be
    used with the bit32 module in lua 5.2 and with Lua BitOp in lua 5.1 and
    luajit.
    
    Exposing protocol values is the first step toward adding support for
    CURLOPT_PROTOCOLS and CURLOPT_REDIR_PROTOCOLS from curl_easy_setopt.
    
    Signed-off-by: Davide "FunkyAss" Del Zompo <davide.delzompo@gmail.com>
Commits on Apr 22, 2014
  1. @msva

    Merge pull request #7 from babywolfh/master

    msva authored
    make curl_formadd support CURLFORM_STREAM option
  2. modify indent

    babywolfh authored
    modify indent
    Signed-off-by: babywolfh <babywolfh@gmail.com>
  3. support CURLFORM_STREAM

    babywolfh authored
    make curl_formadd support CURLFORM_STREAM mode
    Signed-off-by: babywolfh <babywolfh@gmail.com>
Commits on Dec 18, 2013
  1. @msva

    Merge pull request #5 from hftmarkand/master

    msva authored
    Add support for Lua 5.2
  2. @markand

    Add support for Lua 5.2

    markand authored
Commits on May 24, 2013
  1. @flyingtime @msva

    multi-mode fixes, windows fixes

    flyingtime authored msva committed
    Signed-off-by: Vadim A. Misbakh-Soloviov <mva@mva.name>
  2. @janniz @msva

    CURLOPT_HTTPAUTH + CURLOPT_TIMEOUT support

    janniz authored msva committed
    Signed-off-by: Vadim A. Misbakh-Soloviov <mva@mva.name>
Commits on May 11, 2013
  1. @msva

    typo fix.

    msva authored
    Signed-off-by: Vadim A. Misbakh-Soloviov <mva@mva.name>
Commits on Mar 30, 2013
  1. @msva

    some more CMake work

    msva authored
  2. @msva

    fixed GCC-4.7 warnings.

    msva authored
  3. @msva

    fixed CMake installing + added LuaJIT support (with -DUSE_LUAJIT=ON).…

    msva authored
    … Will do Lua52 support later.
Commits on Mar 29, 2013
  1. @msva
Commits on Dec 10, 2012
  1. @msva

    #2 again. I hate autotools.

    msva authored
    Signed-off-by: Vadim A. Misbakh-Soloviov <mva@mva.name>
  2. @msva

    test fix for #2 again

    msva authored
    Signed-off-by: Vadim A. Misbakh-Soloviov <mva@mva.name>
Commits on Dec 2, 2012
  1. @msva

    readme

    msva authored
    Signed-off-by: Vadim A. Misbakh-Soloviov <mva@mva.name>
  2. @msva

    Pregenerated ./configure and makefile added. Possibly, fixes #2

    msva authored
    Signed-off-by: Vadim A. Misbakh-Soloviov <mva@mva.name>
  3. @msva

    possibly, fixes #1 again and, partially, #2

    msva authored
    Signed-off-by: Vadim A. Misbakh-Soloviov <mva@mva.name>
Commits on Nov 18, 2012
  1. @msva

    Lua 5.2 compatibility. Thanks to @SolraBizna. Fix for #3

    msva authored
    Signed-off-by: Vadim A. Misbakh-Soloviov <mva@mva.name>
Commits on Oct 26, 2012
  1. @msva

    added m4

    msva authored
    Signed-off-by: Vadim A. Misbakh-Soloviov <mva@mva.name>
  2. @msva

    TODO update

    msva authored
    Signed-off-by: Vadim A. Misbakh-Soloviov <mva@mva.name>
Something went wrong with that request. Please try again.