curl is a tool to transfer data from or to a server, using one of the supported protocols (DICT, FILE, FTP, FTPS, GOPHER, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, POP3, POP3S, RTMP, RTSP, SCP, SFTP, SMB, SMBS, SMTP, SMTPS, TELNET and TFTP). The command is designed to work without user interaction.
If you don't have curl installed you can install it by following below steps.
Download curl package from Curl Offical Site , now unzip it wherever you want. No need to install it.
You'll have to give path to curl.exe in your Environment variables if you want to use it from anywhere in the command line. To do this, pick any nice location you want and add it to the system path, like this:
Now enjoy typing curl at any command prompt in Windows
To send Header data like "Accept: application/json" or "Content-Type: application/json" from curl you can use below commands