Zet gegevens over van of naar een server. Ondersteunt de meeste protocollen, waaronder HTTP, HTTPS, FTP, SCP, enz. Meer informatie: https://curl.se/docs/manpage.html.
stdout
:curl {{https://example.com}}
3xx
redirects, en [D]ump de antwoordheaders en inhoud naar stdout
:curl --location --dump-header - {{https://example.com}}
curl --remote-name {{https://example.com/filename.zip}}
application/x-www-form-urlencoded
). Gebruik --data @file_name
of --data @'-'
om van stdin
te lezen:curl -X POST --data {{'name=bob'}} {{http://example.com/form}}
curl -k --proxy {{http://127.0.0.1:8080}} --header {{'Authorization: Bearer token'}} --request {{GET|PUT|POST|DELETE|PATCH|...}} {{https://example.com}}
curl --data {{'{"name":"bob"}'}} --header {{'Content-Type: application/json'}} {{http://example.com/users/1234}}
curl --cert {{client.pem}} --key {{key.pem}} --insecure {{https://example.com}}
/etc/hosts
-bestand voor aangepaste DNS-resolutie):curl --verbose --resolve {{example.com}}:{{80}}:{{127.0.0.1}} {{http://example.com}}