How do I post form data using Curl? [Curl/Bash Code]

To post form data using Curl, you can use one of two command-line parameters: -F (--form) or -d. The -F command-line parameter sends form data with the multipart/form-data content type, and the -d command-line parameter sends form data with the application/x-www-form-urlencoded content type. In this Curl POST Form example, we are sending a form to the ReqBin echo URL. Click Run to execute the Curl POST Form request online and see the results. The Curl/Bash code was automatically generated for the Curl POST Form example.
Loading...