Hands-on task
This task is step 5 of the course “curl and HTTP APIs”
Send your own header
A local server at http://localhost:8080/ echoes back the header it receives. Send it a request with the HTTP header X-Token: secret123 and save the response to /root/resp.txt. Without the header the server replies no token.
Reference:curl
What you'll practise:
- curl
- -H
- HTTP headers
- request