local curl = require "curl"
curl
provides functions to execute curl. curl must be installed
separately.
curl.request(...)
Execute
curl
with arguments...
and returns the output ofcurl
(stdout
). Arguments can be a nested list (it will be flattened). In case of error,curl
returnsnil
, an error message and an error code (see curl man page).
curl(...)
Like
curl(...)
with some default options:
--silent
: silent mode--show-error
: show an error message if it fails--location
: follow redirections