Hands-on task
This task is step 4 of the course “curl and HTTP APIs”
Headers only: Content-Type
Request only the headers of the response (no body) from http://localhost:8080/data and write the value of the Content-Type header to /root/ctype.txt.
Reference:curl
What you'll practise:
- curl
- -I
- HEAD
- Content-Type
- response headers