Lab01 Itt557
Lab01 Itt557
ITT 557
HTTP PROTOCOL
STUDENT ID: 2 0 2 2 4 5 5 4 3 4
LAB OBJECTIVES
At the end of this laboratory session, students should be able to:
i. List and differentiate HTTP methods type.
ii. List and describe fields in request and response headers.
iii. List and explain different type of status codes.
INSTRUCTION
HTTP HEADERS
http://ali.uitm.edu.my/ ild.uitm.edu.my
2. We are going to use the developer tools to see the HTTP headers. Enable the
developer tools panel.
7. What is the total time needed to completely load the page? 1.5s
11. List another 5 HTTP request response NOT in the above headers
Accept-Ranges, Age, ETag, Location and Proxy-Authenticate.
13. What is the difference between the response header for the index page and
style.css?
Content-Type: text/css
15. On the webpage, click on the tab About Me. Is the request header difference? List
down the differences. Yes
Cache-Control
Referer: page id
https://ali.uitm.edu.my/?p=126
17. Enter any password into the password field and submit. Notice the resulting request
headers.
18. What is the difference between the request headers in Q17 and the request headers
in Q15?
Content-Type: application/x-www-form-urlencoded only exist in q17 header.
STATUS CODES
https://ali.uitm.edu.my/?p=99999
20. What is the status code when accessing the above URL? 404 not found
22. List down at least 3 status codes for each category listed in Q21.
Client error responses – 400(bad requests)
Server error responses – 502(Bad Gateway)
Informational responses – 101(switching protocols)
BONUS
23. Other than using browsers such as Mozilla Firefox and Google Chrome, we can also
use command or programming libraries for HTTP Protocols. If you have time, try
out the following two commands: