Learn how to send data from files using cURL with the –data and –form options.
Baeldung Author
Tapan Avasthi
Here's what I've written (so far):
Baeldung on Java
- All
- Data (4)
- Programming (3)
- Spring Boot (2)
- Spring (2)
- Networking (2)
- Docker (2)
- Testing (1)
- Reactive (1)
- NoSQL (1)
- Logging (1)
- Java (1)
How to Post Raw Body Data With cURL
Filed under Networking, Programming
Learn how to use cURL for sending raw body data over a POST request.
Guide to Splitting a String by Whitespace in Java
Filed under Java
Learn how to split a String by whitespace characters, such as space, tab, or newline, using multiple approaches
Enable and Disable Endpoints at Runtime With Spring Boot
Filed under Spring Boot
Learn to enable and disable endpoints at runtime in a Spring Boot application using a few popular libraries, such as Spring Cloud, Spring Actuator, and Apache’s Commons Configuration.
Guide to Resilience4j With Spring Boot
Filed under Spring Boot
Learn how to use the Resilience4j library with a simple Spring Boot application.
Guide to the Storage Engine in Apache Cassandra
Dive into the internals of the storage engine used by Apache Cassandra.
How to Change Directory in Docker
Filed under Docker
Learn how to change the directory when building a Docker image or when running a container using an image.
Guide to Check if Apache Kafka Server Is Running
Filed under Data
Learn a few strategies to determine if the Kafka server is running
Guide to Undo a git rebase
Filed under Programming
Learn about two popular techniques to undo a git rebase operation
Reading Flux Into a Single InputStream Using Spring Reactive WebClient
Learn how to read Flux into a single InputStream
Load Testing Using Postman
Filed under Testing
Learn how to use Postman collections to perform simple load testing
List Active Brokers in a Kafka Cluster Using Shell Commands
Filed under Data
Explore few shell commands to get the list of active brokers in a running cluster
Monitor the Consumer Lag in Apache Kafka
Learn how to find the consumer lag on a Kafka topic.
Guide to Setting Up Apache Kafka Using Docker
Learn how to create single-node and multi-node setups of Apache Kafka in Docker
Baeldung on Linux
- All
- Scripting (10)
- Web (4)
- Files (4)
- File Searching (4)
- File Editing (4)
- Processes (2)
- Administration (2)
- File Permissions (1)
Understanding livenessProbe and readinessProbe in Kubernetes
Filed under Administration
Learn about the livenessProbe and readinessProbe mechanisms by configuring them for different scenarios.
Use of BEGIN and END Rules in Awk
Learn the use of awk’s BEGIN and END blocks to solve several interesting use cases, including report generation, line deduplication, sorting, data validation, and data conversion.
Guide to Multiplying Columns Using awk
Filed under Scripting
Learn how to multiply columns using awk where columns are from the same file or different files.
How to cat the Contents of Files Found Using find Into a Single File
Filed under Files
Learn several ways to cat the contents of the files (found using find) to a single destination file.
How to Embed a Shell Command Into a sed Expression
Filed under Scripting
Explore several strategies to embed a shell command into a sed expression, such as the substitution flag, command substitution, and parameter expansion.
How to Auto Delete Files Older Than N Days
Filed under File Searching
Learn how to do file cleanup activity by removing files older than N days and how to automate the process.
How to Remove an Element From an Array Completely in Bash
Filed under Scripting
Learn how to remove an element from a Bash array using positional offsets, selective copying, and utilities such as set, shift, and tac.
Guide to Converting Timestamps in a Column to a Date
Filed under Scripting
Learn how to convert timestamps in a column to a comprehensible date format
Directing the Output of wget to /dev/null in cron
Filed under Administration, Web
Learn the significance of disabling the output of the wget command in cron
Guide to Using sed to Remove Multi-Line Text Blocks
Filed under File Editing
Learn how to use GNU sed to remove multi-line text blocks in different scenarios.
Finding Duplicate Files With the Same Name
Filed under File Searching
Learn how to find files with duplicate names in any letter case using the find, ls, sed, awk, grep, and cut commands.
Check Whether a Container Is Running With docker-compose
Filed under Processes
Learn how to use the docker-compose command to check whether a container is running and how to make such checks more effective by adding a health check for the services.
Guide to Passing Bash Variables to jq
Learn how to make a jq program reusable by passing Bash variables to it.
How to Get Octal File Permissions From the Command Line
Filed under File Permissions
Learn how to get the octal permissions of files in Linux using the stat, find, sed, awk, and exa commands.
How to Get the HTTP Status of a Site Using cURL
Filed under Web
Learn how to connect to a site using cURL and retrieve the HTTP response status.
Guide to Passing Parameters to an Awk Script
Filed under Scripting
Learn how to write dynamic awk scripts by passing parameters.
How to Find All Files Containing a Specific Text Pattern
Filed under File Searching
Learn how to find all files containing a specific text pattern using Linux utilities like find, grep, and a few other alternatives.
How to grep Without Leading Whitespaces
Filed under File Searching
Learn how to use sed, awk, and shell parameter expansion to grep without leading whitespace.
Guide to Removing Trailing Newline From grep Output
Filed under Files
Learn multiple strategies to match a pattern using the grep command and remove the trailing newline from the output.
Replacing Specific Line With a String Variable in Shell
Filed under File Editing, Scripting
Learn how to use sed and awk to replace specific lines with a string variable
Guide to Downloading URLs Listed in a File Using cURL
Filed under Web
Learn a few ways to use the curl and wget commands for downloading a set of files listed in a file
How to Split a Text File Based on a Regular Expression
Filed under File Editing
Learn how to split a text file based on a regular expression with the help of a few popular text-processing utilities.
How to Replace the Nth Occurrence of a String Using sed
Filed under File Editing
Learn how to replace the nth occurrence of a pattern by using a few advanced concepts in sed.
Output Document and Headers to Stdout Using Wget
Filed under Web
Learn a few ways in which we can output the document and headers to the stdout using the wget command
Guide to Getting DST-Safe Relative Dates
Filed under Scripting
Learn how to get relative dates in a DST-safe manner.
The Conditional Variable Assignment Operator in a Makefile
Filed under Scripting
Learn the basics of using variables in a Makefile, followed by using the ?= operator for a more advanced use case
Redirect Output of a Process to a File and Standard Streams
Filed under Processes
Learn few common strategies to redirect the output of a process to a file and standard streams such as stdout and stderr simultaneously
Baeldung on Kotlin
- All
- Kotlin Collections (3)
- Kotlin Strings (1)
- Kotlin Concurrency (1)
Guide to Base64 Encoding and Decoding Strings in Kotlin
Filed under Kotlin Strings
Learn the basics of Base64 encoding and explore a few popular ways to encode and decode strings to Base64 in Kotlin.
Guide to Comparing Arrays in Kotlin
Filed under Kotlin Collections
Learn how to do equality checks for arrays in Kotlin
Guide to Arrays in Kotlin
Filed under Kotlin Collections
Learn about Kotlin’s support for arrays
Guide to Kotlin’s yield Function
Filed under Kotlin Concurrency
Learn how the yield function works in Kotlin through examples with two use cases: building sequences and cooperative multitasking.
Remove Duplicate Values From an Array in Kotlin
Filed under Kotlin Collections
Learn how to remove duplicate values and entity objects from an array in Kotlin