Windows DOS Command Prompt (CMD) And CURL Multi-lines Entry


How do you enter multiple lines of CURL commands to DOS prompt?


Windows DOS, CMD, CURL


Using ^ (carat) at the end of each line to have more command enter. This way you can see all the commands entered nicely on the screen.

Step-by-step instructions:-

Sample CURL command:

curl ^
--request POST ^
--header "Content-Type: application/json" ^
--data '{"data":"Hello World!"}'