Skip to content

Latest commit

 

History

History
33 lines (17 loc) · 748 Bytes

046-the-curl-command.md

File metadata and controls

33 lines (17 loc) · 748 Bytes

The curl command

In linux, 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).

Example :

$ curl example.com

The command will print the source code of the example.com homepage in the terminal window.

The syntax of the curl command is :

$ curl [options...] <url>

Options :

Options start with one or two dashes. Many of the options require an additional value next to them.

***To know more about options and their specific usage open the terminal and type the following command :

$ curl --help