Lecture 13 Flashcards

1
Q

What is HTTP?

A

Hypertext transfer protocol. Core communication protocol on the web. Others: FTP, Telnet etc. Uses a message based model in which the client sends a request message and the server returns a response message.

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

What is the format of HTTP requests?

A

A request line followed by, request specific headers, request body (optional)

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

What are the 9 HTTP request methods?

A

GET retrieve a resource
POST submit data for processing
PUT add/upload a resource
DELETE delete a resource
PATCH partially modify a resource
HEAD like GET but just retrieves the response
header, not the resource itself
TRACE have the request echoed back to check if
any intermediate servers have changed it
OPTIONS asks for the methods the server supports
CONNECT modify the nature of the network connection

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