File lua-curl.luadoc

Functions

curl.easy_init () Create a curl handler.
curl.escape (s) URLencodes the string.
curl.unescape (s) URLdecodes the string.
curl.version () version.
curl.version_info () version informations.
perform () Starts curl.
setopt (opt, data) The setopt function.


Functions

curl.easy_init ()
Create a curl handler.

Return value:

userdata The CURL* handler object.
curl.escape (s)
URLencodes the string.

Parameters

  • s:

Return value:

string The escaped string.
curl.unescape (s)
URLdecodes the string.

Parameters

  • s:

Return value:

string The unescaped string.
curl.version ()
version.

Return value:

string The version string.
curl.version_info ()
version informations.

Return value:

table The version struct.
perform ()
Starts curl.

Return value:

number,errorstring number not zero means an error.
setopt (opt, data)
The setopt function.

Parameters

  • opt: number one of curl.OPT_*.
  • data:

Valid XHTML 1.0!