Alle tools
Gratis

Een doorzoekbaar, afdrukbaar curl-naslagwerk — HTTP-methoden, headers, data en formulieren, authenticatie, downloads, cookies, TLS, proxy's en debuggen. Gratis.

Basis

12
curl https://api.example.com
Stuur een GET-request en print de body
curl -o page.html https://example.com
Sla de response op in een benoemd bestand
curl -O https://example.com/file.zip
Sla op met de remote bestandsnaam
curl -i https://example.com
Toon response-headers plus de body
curl -I https://example.com
Haal alleen de response-headers op (HEAD)
curl -v https://example.com
Uitgebreide uitvoer van request/response
curl -s https://example.com
Stille modus, verberg voortgang en fouten
curl -sS https://example.com
Stil maar toon nog steeds fouten
curl -L https://example.com
Volg HTTP-redirects (3xx)
curl https://a.com https://b.com
Vraag meerdere URL's op in één aanroep
curl 'https://x.com/p?[1-5]'
Gebruik een numeriek bereik om URL's te doorlopen
curl --version
Print de curl-versie en functies

HTTP-methoden

9
curl -X GET https://api.example.com
Stuur expliciet een GET-request
curl -X POST https://api.example.com
Stuur een POST-request
curl -X PUT https://api.example.com/1
Stuur een PUT-request om een resource te vervangen
curl -X PATCH https://api.example.com/1
Stuur een PATCH-request om velden bij te werken
curl -X DELETE https://api.example.com/1
Stuur een DELETE-request
curl -I https://api.example.com
Stuur een HEAD-request voor alleen headers
curl -X OPTIONS https://api.example.com
Stuur een OPTIONS-preflight-request
curl --head https://api.example.com
Lange vorm van -I voor een HEAD-request
curl --request POST https://x.com
Lange vorm van -X om de methode in te stellen

Headers

10
curl -H 'Accept: application/json' https://x.com
Voeg een enkele request-header toe
curl -H 'X-Token: abc' -H 'X-Env: dev' https://x.com
Voeg meerdere headers toe
curl -H 'Content-Type: application/json' https://x.com
Declareer het content-type van de request-body
curl -H 'Authorization: Bearer TOKEN' https://x.com
Stuur een bearer-authorisatieheader
curl -H 'Host: example.com' https://1.2.3.4
Overschrijf de Host-header
curl -H 'Accept-Encoding: gzip' https://x.com
Vraag een gzip-gecomprimeerde response op
curl -A 'MyAgent/1.0' https://x.com
Stel de User-Agent-string in
curl -e 'https://ref.com' https://x.com
Stel de Referer-header in
curl -H 'X-Debug:' https://x.com
Verwijder een standaardheader door hem leeg te laten
curl --compressed https://x.com
Vraag op en decomprimeer de response automatisch

Data versturen

11
curl -d 'name=Jane&age=30' https://x.com
POST URL-gecodeerde formulierdata
curl -d '@payload.json' https://x.com
POST data gelezen uit een bestand
curl --data-urlencode 'q=hello world' https://x.com
POST een enkel URL-gecodeerd veld
curl --data-binary '@file.bin' https://x.com
POST ruwe bytes zonder verwerking
curl -G --data-urlencode 'q=cats' https://x.com
Voeg de data toe als GET-querystring
curl -X POST -H 'Content-Type: application/json' -d '{"name":"Jane"}' https://x.com
POST een JSON-body
curl --json '{"name":"Jane"}' https://x.com
POST JSON en stel JSON-headers automatisch in
curl -F 'name=Jane' https://x.com
Stuur een multipart-formulierveld
curl -F 'file=@photo.png' https://x.com
Upload een bestand als multipart form-data
curl -F 'file=@a.pdf;type=application/pdf' https://x.com
Upload een bestand met een expliciet MIME-type
curl -d '' https://x.com
POST met een lege body

Authenticatie

9
curl -u user:pass https://x.com
HTTP basic-authenticatie
curl -u user https://x.com
Basic auth, vraag om het wachtwoord
curl -H 'Authorization: Bearer TOKEN' https://x.com
Stuur een bearer-token-header
curl --oauth2-bearer TOKEN https://x.com
Stuur een OAuth 2.0-bearer-token
curl --digest -u user:pass https://x.com
Gebruik HTTP digest-authenticatie
curl --ntlm -u user:pass https://x.com
Gebruik NTLM-authenticatie
curl --netrc https://x.com
Lees inloggegevens uit ~/.netrc
curl --netrc-file creds https://x.com
Lees inloggegevens uit een aangepast netrc-bestand
curl -H 'X-Api-Key: KEY' https://x.com
Stuur een API-key-header

Downloaden & uploaden

11
curl -O https://x.com/file.zip
Download met de remote bestandsnaam
curl -o out.zip https://x.com/file.zip
Download naar een gekozen bestandsnaam
curl -OL https://x.com/file.zip
Download en volg redirects
curl -C - -O https://x.com/file.zip
Hervat een gedeeltelijke download
curl --limit-rate 200k -O https://x.com/f
Beperk de overdrachtssnelheid
curl -r 0-1023 -o part https://x.com/f
Download alleen een byte-bereik
curl --retry 3 -O https://x.com/f
Probeer de download opnieuw bij mislukking
curl -T file.txt ftp://x.com/
Upload een bestand met PUT/FTP
curl -T file.txt https://x.com/up
Upload een bestand via HTTP PUT
curl --create-dirs -o a/b/f.txt https://x.com
Maak ontbrekende mappen voor de uitvoer
curl -# -O https://x.com/file.zip
Toon een eenvoudige voortgangsbalk

Cookies

8
curl -b 'session=abc123' https://x.com
Stuur een cookie inline
curl -b cookies.txt https://x.com
Stuur cookies uit een bestand
curl -c cookies.txt https://x.com
Schrijf ontvangen cookies naar een jar
curl -b jar.txt -c jar.txt https://x.com
Lees en werk dezelfde cookie-jar bij
curl -b 'a=1; b=2' https://x.com
Stuur meerdere cookies tegelijk
curl -c - https://x.com
Print ontvangen cookies naar stdout
curl --junk-session-cookies -b jar.txt https://x.com
Negeer sessiecookies uit de jar
curl -L -c jar.txt -b jar.txt https://x.com/login
Behoud een sessie over redirects heen

TLS / SSL

10
curl -k https://x.com
Sta onveilig toe (certificaatverificatie overslaan)
curl --cacert ca.pem https://x.com
Verifieer met een aangepaste CA-bundel
curl --capath /etc/ssl/certs https://x.com
Gebruik een map met CA-certificaten
curl --cert client.pem https://x.com
Stuur een clientcertificaat
curl --cert client.pem --key client.key https://x.com
Gebruik een clientcert en privésleutel
curl --tlsv1.2 https://x.com
Vereis minimaal TLS 1.2
curl --tlsv1.3 https://x.com
Vereis minimaal TLS 1.3
curl --tls-max 1.2 https://x.com
Beperk de maximale TLS-versie
curl --ciphers ECDHE-RSA-AES128-GCM-SHA256 https://x.com
Beperk toegestane TLS-ciphers
curl -vI https://x.com
Inspecteer de details van de TLS-handshake

Proxy's

9
curl -x http://proxy:8080 https://x.com
Routeer de request via een HTTP-proxy
curl --proxy http://proxy:8080 https://x.com
Lange vorm van -x om een proxy in te stellen
curl -x proxy:8080 -U user:pass https://x.com
Authenticeer bij de proxy
curl --proxy-user user:pass -x proxy:8080 https://x.com
Lange vorm van proxy-inloggegevens
curl --socks5 127.0.0.1:1080 https://x.com
Gebruik een SOCKS5-proxy
curl --socks5-hostname 127.0.0.1:1080 https://x.com
SOCKS5-proxy met remote DNS-resolutie
curl --socks4 127.0.0.1:1080 https://x.com
Gebruik een SOCKS4-proxy
curl --noproxy example.com https://x.com
Omzeil de proxy voor opgegeven hosts
curl -x '' https://x.com
Schakel elke geconfigureerde proxy uit

Debuggen & uitvoer

11
curl -w '%{http_code}\n' -o /dev/null -s https://x.com
Print alleen de HTTP-statuscode
curl -w '%{time_total}\n' -o /dev/null -s https://x.com
Print de totale overdrachtstijd
curl -w '@format.txt' https://x.com
Lees het write-out-formaat uit een bestand
curl -D headers.txt https://x.com
Dump response-headers naar een bestand
curl -D - -o body.txt https://x.com
Headers naar stdout, body naar een bestand
curl --trace trace.txt https://x.com
Volledige hex-trace van de overdracht
curl --trace-ascii - https://x.com
ASCII-trace naar stdout
curl --trace-time -v https://x.com
Voeg tijdstempels toe aan uitgebreide uitvoer
curl -v https://x.com 2>&1 | less
Blader door het uitgebreide log
curl -sS -o /dev/null -w '%{size_download}\n' https://x.com
Print het aantal gedownloade bytes
curl --libcurl out.c https://x.com
Genereer equivalente libcurl C-broncode

Timeouts & herhalingen

10
curl --connect-timeout 5 https://x.com
Beperk de verbindingsfase in seconden
curl --max-time 30 https://x.com
Beperk de totale operatietijd
curl --retry 3 https://x.com
Probeer opnieuw bij tijdelijke fouten
curl --retry 3 --retry-delay 2 https://x.com
Wacht tussen herhalingspogingen
curl --retry 5 --retry-max-time 60 https://x.com
Begrens de totale tijd besteed aan herhalen
curl --retry-connrefused https://x.com
Probeer ook opnieuw bij geweigerde verbinding
curl --retry-all-errors https://x.com
Probeer opnieuw bij elke fout, niet alleen tijdelijke
curl --speed-limit 100 --speed-time 10 https://x.com
Breek af als te langzaam gedurende een periode
curl --keepalive-time 60 https://x.com
Stel het TCP keep-alive-interval in
curl --expect100-timeout 1 https://x.com
Beperk het wachten op een 100-continue

Geen vermelding komt overeen met “:q”.


Hulp nodig?
Een probleem met deze tool gevonden? Laat het ons weten.
Een probleem melden

Voeg deze gratis tool toe aan je eigen website — kopieer en plak de onderstaande code.