Install the complete package with local command reference and every published mode.
install curlcurlUse
curl <url|host|me> [options]curl meuse the current host
curl example.comsend a GET request and show status and body
curl example.com -Ishow the final response headers only
curl example.com -s [file]save the response; use the URL filename when omitted
curl example.com -X POST -d "a=1"send a request body
-X <method>set the HTTP method
-d <data>set the request body; defaults to POST
-H "Name: value"add a request header; may be repeated
-u <user>use HTTP Basic authentication through a hidden password prompt
-c '{"name":"value"}'send cookies from a JSON object
-s [file] | -o <file>save the response on the host
-aappend instead of replacing; requires -s or -o
-iinclude final response headers
-Ishow final response headers only
-jshow status, URL, headers and body as structured JSON
-edit @editopen the response body in the text editor through .lil.tmp
-code @codeopen the response body in the code editor through .lil.tmp
-t [seconds]use 5 seconds or a custom timeout from 1 to 300
-Tuse a 300-second timeout
-4 | -6use IPv4 or IPv6 when
-kallow an insecure TLS certificate
-rdo not follow redirects
-j always returns one predictable JSON object. If the body itself is valid JSON, the body field contains the parsed value; otherwise it contains text. -edit and -code write the response body to the protected core-root buffer .lil.tmp and immediately open it in the selected installed editor. The buffer is cleared by exit, kill and kill -cache.
TLS certificates and redirects are handled safely by default. Use -k or -r only deliberately. Editor modes are for textual responses only and cannot be combined with -s or -o.
Run the prepared examples directly on the page. Their results are prebuilt and shown in the browser; no terminal command is executed on the server.
Install the current compatible version. Choose Base for the complete feature set or Minimum for the reduced package; use upgrade to update a module that is already installed.
Base and Minimum are two packages of the same current module release, not separate command versions.
Install the complete package with local command reference and every published mode.
install curlInstall the reduced package. Local reference is omitted;
install curl -mInstall exactly this published version.
install curl -v 1.2.4Ask upgrade to check compatibility and replace the installed block only when needed.
upgrade curlRemove the extension block while leaving the core and unrelated modules intact.
install curl -uExamples are copyable command lines, not actions executed by this website. Review paths, permissions and destructive flags before running them on a real project.
curl https://example.com -I | curl https://example.com/feed.xml -o sandbox/tmp/feed-copy.xmlHTTP/2 200
content-type: text/html; charset=UTF-8
content-length: 1256
sandbox/tmp/
feed-copy.xmlcurl https://example.comHTTP 200
URL https://example.com/
<!doctype html>
<html>
<head><title>Example Domain</title></head>
<body>…</body>
</html>curl https://example.com -IHTTP/2 200
content-type: text/html; charset=UTF-8
cache-control: max-age=86000
content-length: 1256curl https://example.com -iHTTP/2 200
content-type: text/html; charset=UTF-8
<!doctype html>
<html>…</html>curl https://example.com/api -H "Accept: application/json"HTTP 200
URL https://example.com/api
{"status":"ok","service":"example"}curl https://example.com/api -X POST -d "name=lil"HTTP 200
URL https://example.com/api
{"saved":true,"name":"lil"}curl https://example.com -c '{"theme":"dark"}'HTTP 200
URL https://example.com/
<!doctype html>
<html data-theme="dark">…</html>curl https://example.com/feed.xml -o sandbox/tmp/feed.xmlsandbox/tmp/
feed.xmlcurl meHTTP 200
URL https://lil.dog/
<!doctype html>
<html>…</html>curl https://example.com -6HTTP 200
URL https://example.com/
<!doctype html>
<html>…</html>curl https://example.com -rHTTP 200
URL https://example.com/
<!doctype html>
<html>…</html>curl https://example.com -4HTTP/2 200
content-type: application/json
content-length: 128curl ftp://example.comInvalid URLFinalizes Local and Server Help synchronization and localization safety for