http:// Flashcards
• What is a client?
o The party that initiates communication sessions with servers.
o Service requestor
• What is a server?
o A server hosts runs one or more server programs, which share resources with clients.
• Which HTTP method does a browser issue to a web server when you visit a URL?
o get
• What three things are on the start-line of an HTTP request message?
o Requests to be implemented
o Its status of whether successful or failure
o (Start line is always a single line)
• What three things are on the start-line of an HTTP response message?
o POST / HTTP/1.1
o GET /background.png HTTP/1.0
o HEAD /test.html?query=alibaba HTTP/1.1
o OPTIONS /anypage.html HTTP/1.0
• What are HTTP headers?
o An HTTP header is a field of an HTTP request or response that passes additional context and metadata about the request or response.
o Much like the element in HTML
• Where would you go if you wanted to learn more about a specific HTTP Header?
o Protocol version, usually/1.1
o Status code (like 404)
o A status Text – brief, purely informational, textual description of the status code
• Is a body required for a valid HTTP request or response message?
o No – responses with a status code that sufficiently answer the request without the need for corresponding payload usually do not.