oliverdavies.uk/source/_daily_emails/2025-01-10.md
Oliver Davies 0f257e47f5
Some checks are pending
Build and Deploy / build_and_deploy (push) Waiting to run
Add daily email for 2025-01-10
Just use curl
2025-01-14 01:06:23 +00:00

1 KiB

title date permalink tags cta snippet
Just use curl 2025-01-10 daily/2025/01/10/curl
software-development
linux
sponsor I don't use complicated or bloated applications to test HTTP requests and API endpoints. I just use curl.

I don't use complicated or bloated applications to test HTTP requests and API endpoints.

I just use curl on my command line.

For example, if I want to query the Drupal.org API for my user information, I can run curl https://www.drupal.org/api-d7/user.json?uid=381388 and see the response.

To see the request and response headers, status code, SSL certificate information and more, I can run curl -v to run it in verbose mode.

If the response returns JSON, I can use jq to format the results.

If I need to make a POST request, I can use -X POST, I can use --data or --json to send data and --header to send any required headers.

curl is great program with so many options and no AI bloat, complicated UIs or paid plans.

Want to see what else it can do?

Just open your terminal and type man curl.