Hypertext Transport Protocol (HTTP)

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

What is the standard port number for HTTP?

  • 8080
  • 443
  • 20
  • 80 (correct)

What does it mean for HTTP to be a stateless protocol?

  • The protocol requires continuous communication between client and server.
  • The server does not retain client information between requests. (correct)
  • The client must keep track of server responses.
  • The server remembers client details between requests.

Which field in the HTTP request header specifies the media type(s) acceptable for the response?

  • Keep-Alive
  • User-Agent
  • Accept (correct)
  • Host

Why is 'Mozilla/5.0' used in the 'User-Agent' header of an HTTP request?

<p>To declare compatibility with Mozilla version 5.0. (B)</p> Signup and view all the answers

What is the purpose of the 'Keep-Alive' field in an HTTP request?

<p>To allow a persistent connection between client and server. (D)</p> Signup and view all the answers

If a user agent wants to receive gzipped content, which field in the request header would it use?

<p>Accept-Encoding (C)</p> Signup and view all the answers

What does the 'Host' field in an HTTP request header specify?

<p>: The domain name of the server and port number (C)</p> Signup and view all the answers

What is included in an HTTP Request after Request Headers?

<p>Optional body (D)</p> Signup and view all the answers

Flashcards are hidden until you start studying

More Like This

Understanding HTTP Status Codes
8 questions
Web
10 questions

Web

LionheartedSeattle avatar
LionheartedSeattle
Protocole HTTP: Quizz sur le fonctionnement
49 questions
Use Quizgecko on...
Browser
Browser