curl -d [Curl/Bash Code]

An example of sending data to the server with Curl. The data is passed with the -d command-line parameter. In this curl -d example, the -H command-line option explicitly specifies the content type in the request body. The Curl/Bash code was automatically generated for the Curl example.
curl -d [Curl/Bash Code] Run
curl -X POST https://reqbin.com/echo/post/form
	 -H "Content-Type: application/x-www-form-urlencoded"
	 -d "key=value&key2=value2" 
Updated: Viewed: 8213 times
Curl/Bash code for Curl example

Curl/Bash code for Curl Example

This Curl/Bash code snippet was generated automatically for the Curl example.
<< Back to the Curl example

Curl Command-Line Tool

Curl is a command-line tool for Linux, Windows, and macOS that can be used to post requests to the server.

You can post forms, upload files, or make custom requests to API endpoints with Curl.

To pass data to Curl, use the -d command line option.

-d "data to send"

Generate code snippets for Curl/Bash and other programming languages

Convert your Curl request to the PHP, JavaScript/AJAX, Curl/Bash, Python, Java, C#/.NET code snippets using the Curl/Bash code generator.