Add daily email for 2025-01-10
Some checks are pending
Build and Deploy / build_and_deploy (push) Waiting to run
Some checks are pending
Build and Deploy / build_and_deploy (push) Waiting to run
Just use curl
This commit is contained in:
parent
4693e26daf
commit
0f257e47f5
29
source/_daily_emails/2025-01-10.md
Normal file
29
source/_daily_emails/2025-01-10.md
Normal file
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
title: Just use curl
|
||||
date: 2025-01-10
|
||||
permalink: daily/2025/01/10/curl
|
||||
tags:
|
||||
- software-development
|
||||
- linux
|
||||
cta: sponsor
|
||||
snippet: |
|
||||
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`.
|
Loading…
Reference in a new issue