curl -d

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.
curl -d Run
curl -X POST
	 -H "Content-Type: application/x-www-form-urlencoded"
	 -d "key=value&key2=value2" 
Updated: Viewed: 8135 times

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 Example

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