Linux
HOGENT toegepaste informatica
2026-2027
Browsers:
CLI utilities:
$ curl icanhazip.com
193.190.172.117
Try this:
curl 'https://icanhazdadjoke.com/'curl 'https://api.coinlore.net/api/ticker/?id=90'curl 'https://education.thingsflow.eu/IAQ/DeviceByQR?hashedname=5201731f632701e602d31f98be7297e088a94eb38736c452495f02e444d4ba2d'Normally, curl prints to
stdout
When redirected, progress information is printed:
$ curl 'https://icanhazdadjoke.com/' > joke.txt
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 95 100 95 0 0 320 0 --:--:-- --:--:-- --:--:-- 319Turn off with -s / --silent
E.g.
curl -X GET https://httpbun.com/any
curl -X POST https://httpbun.com/any
curl -X PUT https://httpbun.com/any
curl -X DELETE https://httpbun.com/any
...
Which request is default?
-o, --output
<file>-O, --remote-namecurl -s -o anything.json https://httpbun.com/any
curl -s -O https://www.google.com/robots.txt
-i, --include: toon ook de HTTP response
headers-I, --head: toon enkel de
headerscurl -i http://google.com
curl -H 'User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt)' \
https://httpbun.com/any
-L, --location-d, --data
var=val&var=valcurl -X POST -d 'penguin=tux&color=blue' https://httpbun.com/any