Curl Flashcards
Learn about curl
What is curl?
curl is an open source command line tool for exchanging data with a server.
What is the basic syntax of a curl command?
The basic syntax of a curl command is command -> options -> url
What does the options part of the curl command do?
The options part of the curl command can also be referred to as flags, they enable you to customise the behaviour of the command.
What is the -X flag?
The -X flag is an alias for –request.
What is the -H flag?
The -H flag is an alias for –header.
What is the -d flag?
The -d flag is an alias for –data.
What does the -i flag do?
It provides a detailed response with HTTP headers.
What do you need to remember when using flags?
Don’t leave any spaces after the colons when writing curl commands.
What protocols does curl support?
Curl supports about 28 different protocols:
- DICT
- FILE
- FTP
- FTPS
- GOPHER
- GOPHERS
- HTTP
- HTTPS
- IMAP
- IMAPS
- LDAP
- LDAPS
- MQTT
- POP3
- POP3S
- RTMP
- RTSP
- SCP
- SFTP
- SMB
- SMBS
- SMTP
- SMTPS
- TELNET
- TFTP
- WS
- WSS