Define HTTP.
Hypertext Transfer Protocol, the foundation of data communication on the web.
What does REST stand for?
Representational State Transfer, an architectural style for designing networked applications.
True or false: GET requests can modify server data.
FALSE
GET requests are intended for retrieving data only.
Fill in the blank: POST is used to _______ data to the server.
send
What is the purpose of the PUT method?
To update an existing resource or create it if it does not exist.
Define DELETE method.
A method used to remove a specified resource from the server.
What does HEAD request return?
Similar to GET, but only returns HTTP headers, not the body.
True or false: OPTIONS method shows allowed HTTP methods for a resource.
TRUE
What is the PATCH method used for?
To apply partial modifications to a resource.
Define status codes.
Three-digit codes indicating the result of an HTTP request.
What does 200 OK status code mean?
The request was successful, and the server returned the requested data.
Fill in the blank: 404 indicates that a resource was _______.
not found
What does 500 Internal Server Error signify?
A generic error indicating the server encountered an unexpected condition.
True or false: 301 Moved Permanently indicates a temporary redirect.
FALSE
301 indicates a permanent change in resource location.
Define CORS.
Cross-Origin Resource Sharing, a security feature that allows restricted resources to be requested from another domain.
What is the purpose of HTTP headers?
To provide additional information about the request or response.
Fill in the blank: User-Agent header identifies the _______.
client software making the request.
What does Content-Type header specify?
The media type of the resource being sent or received.
True or false: HTTP/2 improves performance over HTTP/1.1.
TRUE
Define session in web context.
A temporary interaction between a user and a web application.
What is the role of cookies?
To store user-specific information on the client side for session management.
Fill in the blank: JWT stands for _______.
JSON Web Token
What is API?
Application Programming Interface, a set of rules for building software applications.
True or false: WebSockets allow full-duplex communication.
TRUE