Lecture 13 Flashcards
What is HTTP?
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.
What is the format of HTTP requests?
A request line followed by, request specific headers, request body (optional)
What are the 9 HTTP request methods?
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