[Shell command] Send a POST request with curl

Created on November 30, 2026

You can send a POST request with curl by specifying -X POST and passing the request body with -d. Replace the example URL with your endpoint.

curl -X POST -d 'user_id=111' https://example.com

-d sends this body as form data with the application/x-www-form-urlencoded content type. It also selects POST by default, so -X POST is optional in this example.

Shell command curl