oliverdavies.uk/content/node.5d894fb5-1253-4f7e-a6ad-429618eeefef.yml

80 lines
2.9 KiB
YAML

uuid:
- value: 5d894fb5-1253-4f7e-a6ad-429618eeefef
langcode:
- value: en
type:
- target_id: daily_email
target_type: node_type
target_uuid: 8bde1f2f-eef9-4f2d-ae9c-96921f8193d7
revision_timestamp:
- value: '2025-05-11T09:00:02+00:00'
revision_uid:
- target_type: user
target_uuid: b8966985-d4b2-42a7-a319-2e94ccfbb849
revision_log: { }
status:
- value: true
uid:
- target_type: user
target_uuid: b8966985-d4b2-42a7-a319-2e94ccfbb849
title:
- value: 'Just use curl'
created:
- value: '2025-01-10T00:00:00+00:00'
changed:
- value: '2025-05-11T09:00:02+00:00'
promote:
- value: false
sticky:
- value: false
default_langcode:
- value: true
revision_translation_affected:
- value: true
path:
- alias: /daily/2025/01/10/curl
langcode: en
body:
- value: |
<p>I don't use complicated or bloated applications to test HTTP requests and API endpoints.</p>
<p>I just use <code>curl</code> on my command line.</p>
<p>For example, if I want to query the Drupal.org API for my user information, I can run <code>curl https://www.drupal.org/api-d7/user.json?uid=381388</code> and see the response.</p>
<p>To see the request and response headers, status code, SSL certificate information and more, I can run <code>curl -v</code> to run it in verbose mode.</p>
<p>If the response returns JSON, I can use <code>jq</code> to format the results.</p>
<p>If I need to make a POST request, I can use <code>-X POST</code>, I can use <code>--data</code> or <code>--json</code> to send data and <code>--header</code> to send any required headers.</p>
<p>curl is great program with so many options and no AI bloat, complicated UIs or paid plans.</p>
<p>Want to see what else it can do?</p>
<p>Just open your terminal and type <code>man curl</code>.</p>
format: full_html
processed: |
<p>I don't use complicated or bloated applications to test HTTP requests and API endpoints.</p>
<p>I just use <code>curl</code> on my command line.</p>
<p>For example, if I want to query the Drupal.org API for my user information, I can run <code>curl https://www.drupal.org/api-d7/user.json?uid=381388</code> and see the response.</p>
<p>To see the request and response headers, status code, SSL certificate information and more, I can run <code>curl -v</code> to run it in verbose mode.</p>
<p>If the response returns JSON, I can use <code>jq</code> to format the results.</p>
<p>If I need to make a POST request, I can use <code>-X POST</code>, I can use <code>--data</code> or <code>--json</code> to send data and <code>--header</code> to send any required headers.</p>
<p>curl is great program with so many options and no AI bloat, complicated UIs or paid plans.</p>
<p>Want to see what else it can do?</p>
<p>Just open your terminal and type <code>man curl</code>.</p>
summary: null
field_daily_email_cta: { }