← All courses

curl and HTTP APIs

Talk to any HTTP API from the terminal: headers, authentication, POST with JSON and forms, redirects and parsing the response.

12 tasks
  1. Download the server's response bodyeasy
  2. Download a file, keeping its nameeasy
  3. Find out the response codemedium
  4. Headers only: Content-Typemedium
  5. Send your own headereasy
  6. Basic authenticationeasy
  7. Send a POST with JSONmedium
  8. POST a urlencoded formmedium
  9. Extract a field from a JSON responsemedium
  10. Follow the redirecteasy
  11. Where does the link end upmedium
  12. A URL probe with the code in a logmedium