Curl Flashcards

Learn about curl

1
Q

What is curl?

A

curl is an open source command line tool for exchanging data with a server.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the basic syntax of a curl command?

A

The basic syntax of a curl command is command -> options -> url

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does the options part of the curl command do?

A

The options part of the curl command can also be referred to as flags, they enable you to customise the behaviour of the command.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the -X flag?

A

The -X flag is an alias for –request.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the -H flag?

A

The -H flag is an alias for –header.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the -d flag?

A

The -d flag is an alias for –data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What does the -i flag do?

A

It provides a detailed response with HTTP headers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What do you need to remember when using flags?

A

Don’t leave any spaces after the colons when writing curl commands.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What protocols does curl support?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly