Urgent.News

What's breaking now, across thousands of outlets.

Tech

Using Curl

Curl is a command-line utility and underlying library (libcurl) used to transfer data across a wide range of network protocols, including HTTP, HTTPS, FTP, FTPS, SCP, SFTP, LDAP, MQTT, and more. It supports features like proxy support, user authentication, cookies, file uploads, and SSL connections, making it a go-to tool for developers, system administrators, and anyone working with web APIs or…

Curl is a versatile command-line utility and underlying library (libcurl) that enables the transfer of data across various network protocols, including HTTP, HTTPS, FTP, and more. It supports a range of features like proxy support, user authentication, cookies, file uploads, and SSL connections, making it a popular choice among developers and system administrators for working with web APIs and networked services.

This article provides a brief guide on using curl to perform HTTP requests from the terminal, covering tasks such as downloading files, setting custom headers, executing different HTTP methods, managing redirects, sending JSON payloads, authenticating with servers, and troubleshooting via verbose mode.

The guide begins with a concise summary of the most frequently used curl commands, followed by an in-depth exploration of each operation. It explains the basic syntax of the curl command, demonstrates how to perform a basic GET request, save webpage output to a file, follow redirects, send POST form data, transmit JSON payloads, add custom headers, implement basic authentication, upload files using multipart form, and control the verbosity of output.

By following these instructions, readers will gain the necessary skills to test APIs and automate network tasks using curl in the command line.

Brief written by urgent.news from Dev.to's own syndicated text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Using the Linux IP Command to Manage Server Network Interfaces

The ip command is a built-in Linux network management utility that offers a wide range of features and tools for managing network interfaces.

  • ip command consolidates functions of older Linux network tools.
  • Use ip link show to view all network interfaces and their states.
  • Configure IP addresses with ip addr add and manage MTU with ip link set.

Scanning for Open Ports and Vulnerabilities with Nmap

Nmap (Network Mapper) is an open-source network discovery tool that identifies hosts, services, and potential security issues.

  • Nmap is open-source tool for network discovery and vulnerability assessment
  • Install Nmap on Linux server with sudo privileges using package manager
  • Use Nmap's Scripting Engine to detect specific vulnerabilities like FTP anonymous login

Playwright Email Tests Need a Cleanup Contract

Email-based end-to-end tests often look flaky for the wrong reason. A signup test creates a user, waits for a verification message, and sometimes finds an email that belongs to a previous run.

  • Email-based fixtures cause flakiness in end-to-end email tests.
  • Implement ownership contract for test mailboxes to improve reliability.
  • Clear contract includes ownership, readability, lifespan, and cleanup responsibilities.

Third VeloCloud Orchestrator Flaw Exploited in 2026: CVE-2026-114625 in a Pattern

Third VeloCloud Orchestrator Flaw Exploited in 2026: CVE-2026-114625 in a Pattern CVE-2026-114625 is the third VeloCloud Orchestrator vulnerability that Arista has reported as exploited since late…

  • Third critical vulnerability CVE-2026-114625 exploited in VeloCloud Orchestrator
  • SQL injection flaw allows low-level users to escalate to superuser operator
  • Arista patched hosted and dedicated orchestrators, but on-premises customers must apply fixes

Using Rsync to Transfer Files in Linux

Rsync is a file transfer tool for transferring and synchronizing files across systems. It's commonly used for backups, file mirroring, and updating files between local directories or remote servers.

  • Rsync efficiently transfers only file differences between source and destination.
  • Install Rsync using distribution-specific commands (e.g., sudo apt install rsync for Ubuntu/Debian).
  • Use rsync [OPTION] SRC DEST syntax to copy files or directories.

More from Thursday 22 October →