Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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>
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 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 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. modify indent

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

    babywolfh authored
    make curl_formadd support CURLFORM_STREAM mode
    Signed-off-by: babywolfh <babywolfh@gmail.com>
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 Mar 30, 2013
  1. @msva

    fixed GCC-4.7 warnings.

    msva authored
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

    Pregenerated ./configure and makefile added. Possibly, fixes #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 16, 2011
  1. @msva
  2. @msva

    added few usefull curl options

    msva authored
Commits on Mar 23, 2011
  1. @kimperator
Commits on Sep 21, 2007
  1. added shared example

    juergen authored
  2. added share interface

    juergen authored
  3. added ChangeLog

    juergen authored
  4. fixed memoryleak in lua_setopt_strings

    juergen authored
Commits on Aug 12, 2007
  1. whitespace

    juergen authored
  2. remove printf debug output

    juergen authored
Commits on Aug 11, 2007
  1. fix escape in userdata context

    juergen authored
  2. implemented setopt_strings for setopt_httpheader

    juergen authored
  3. removed stackdump

    juergen authored
  4. ssl

    juergen authored
Commits on Aug 10, 2007
  1. first implementation of http options

    juergen authored
  2. remove debug

    juergen authored
  3. do curl global initialization

    juergen authored
Something went wrong with that request. Please try again.