A command line tool for getting or sending files using URL syntax. —— Wikipedia
curl is an easy to use command line tool to send and receive files, and it supports almost all major protocols(DICT, FILE, FTP, FTPS, GOPHER, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, POP3, POP3S, RTMP, RTSP, SCP, SFTP, SMTP, SMTPS, TELNET and TFTP) in use. The name originally stood for “see URL”.
This kind of POST will use the Content-Type application/x-www-form-urlencoded and is the most widely used POST kind. The data you send to the server MUST already be properly encoded,
curl will not do that for you.
curl versions can in fact url-encode POST data for you, like this:
curl doesn’t follow the HTTP Location headers. It is also termed as Redirects. We can insists
curl to follow the redirection using -L option, as shown below.
curl uses Basic HTTP Authentication. We can specify other authentication method using
–ntlm | –digest.