Purpose of HTTP

Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.

Purpose of HTTP

Name:
Date:
Class:

Quick Questions

Shade in the A or B circle for each question.

1. What does HTTP stand for?
A High Transfer Text Program
B Hypertext Transfer Protocol
2. What is the main purpose of HTTP?
A Rules for a browser and web server to request and send web pages
B Rules for sending emails between mail servers
3. Which statement about HTTP is correct?
A It is used for all internet data, including email and file transfer
B It is used only for web pages
4. Which is the default protocol for web pages?
A HTTP
B SMTP
5. In the term 'hypertext transfer', what is being transferred?
A Web pages containing hypertext and links
B Only the user's passwords

Match the Pairs

Draw a line connecting each item on the left to its match on the right.

Left columnRight column
1HTTP AHypertext Transfer Protocol: the rules a browser and web server use to request and send web pages
2http://www.example.com/index.html BHTTP = web pages
3HTTP is used for the web only: it transfers web pages, not emails CA URL that starts with the default protocol for web pages, telling the browser to use HTTP to fetch the page
4The browser asks the web server for a page using HTTP DGET /index.html HTTP/1.1
5HTTP = Hypertext Transmission Program EHTTP is used only for web pages. Email and other services use different protocols.
6HTTP is used to send emails and transfer files of any kind FHTTP stands for Hypertext Transfer Protocol. It is a protocol (a set of rules), not a program.

Definitions

HTTP

Fill in the Blanks

Complete each line of code by filling in the missing parts.

1.
____://www.example.com/index.html
2.
GET /index.html ____/1.1
3.
Browser sends an HTTP _______ to server
4.
Server sends an HTTP ________ to browser
5.
HTTP stands for _________ Transfer Protocol

Spot the Error

Shade in the letter of the line that contains an error.

Question 1
A acronym = 'HTML'
B meaning = 'Hypertext Transfer'
C kind = 'protocol'
Question 2
A browser sends HTTP request
B server finds the web page
C server sends HTTP response
D browser sends the web page
Question 3
A protocol = 'HTTP'
B if protocol == 'HTTP':
C print('email only')
Question 4
A GET /index.html FTP/1.1
B Host: www.example.com
C Accept: text/html
Question 5
A url = 'example.com/home.html'
B default_protocol = 'SMTP'
C print('Web page requested')

Answer Key

Purpose of HTTP
Section A: Quick Questions
Q1
B — Hypertext Transfer Protocol
Q2
A — Rules for a browser and web server to request and send web pages
Q3
B — It is used only for web pages
Q4
A — HTTP
Q5
A — Web pages containing hypertext and links
Section B: Match the Pairs
Q1
HTTP → Hypertext Transfer Protocol: the rules a browser and web server use to request and send web pages
Q2
http://www.example.com/index.html → A URL that starts with the default protocol for web pages, telling the browser to use HTTP to fetch the page
Q3
HTTP is used for the web only: it transfers web pages, not emails → HTTP = web pages
Q4
The browser asks the web server for a page using HTTP → GET /index.html HTTP/1.1
Q5
HTTP = Hypertext Transmission Program → HTTP stands for Hypertext Transfer Protocol. It is a protocol (a set of rules), not a program.
Q6
HTTP is used to send emails and transfer files of any kind → HTTP is used only for web pages. Email and other services use different protocols.
Section C: Definitions
Q1
HTTP — Hypertext Transfer Protocol: the set of rules a browser and web server use to request and send web pages. It is the default protocol for the web and is used only for web pages.
Section D: Fill in the Blanks
Q1
http://www.example.com/index.html
Q2
GET /index.html HTTP/1.1
Q3
Browser sends an HTTP request to server
Q4
Server sends an HTTP response to browser
Q5
HTTP stands for Hypertext Transfer Protocol
Section E: Spot the Error
Q1
A — The acronym for Hypertext Transfer Protocol is HTTP. HTML is the markup language used to build web pages, not a protocol.
Q2
D — The server sends the web page in its HTTP response. The browser only displays it, so line 4 should be: browser displays the web page.
Q3
C — HTTP is used only for requesting and sending web pages, not for email. The line should print 'web pages only'.
Q4
A — A browser requesting a web page names the HTTP protocol in the request line. It should say HTTP/1.1, not FTP/1.1.
Q5
B — HTTP is the default protocol for web pages. SMTP is used for sending email, so the value should be 'HTTP'.