Week 14: HTTP TLS - Hsanokklis/2023-2024-Tech-journal GitHub Wiki

Objective: Explore the different HTTP Response Status Codes and the scenarios which trigger them

Goals:

  • Identify the distinct causes and differentiation between 4XX Status Codes
  • Recognize the cause and purpose of 3XX Status Codes

Pre-Lab Activity

We will be using telnet to connect to a web server and retrieve pages from the command line.

  • telnet jasonoreeves.com 80
  • Type in GET /test.html HTTP/1.1 It might be blind typing
  • hit enter
  • enter HOST:jasonoreeves.com
  • hit enter twice

Here is the HTML file that is returned!!!

image

Lab Instructions

HTTP Status Codes ---> https://umbraco.com/knowledge-base/http-status-codes/

Status Code 404: Resource Not Found

GET /GinterIsTheBest.html HTTP/1.1

This resource does not exist on the server, so I got the response code NOT FOUND since the server can't find

image

Status Code 400: Bad request

GET test.html HTTP/1.1

I made the syntax incorrect in the GET request by putting test.html instead of /test.html

image

Link used:

https://www.dreamhost.com/blog/400-bad-request-error/#:~:text=The%20400%20Bad%20Request%20error%20is%20a%20client%2Dside%20HTTP,cookies%2C%20or%20conflicting%20browser%20extensions.

Status Code 401: Unauthorized

I do not have the authorization to access this resource

image

Status Code 403: Forbidden

I don't have access to this resource

image

Perform some traffic captures of HTTP sessions using your browser - refresh pages- load new pages etc. Look for any 3xx errors you can find

From the http://burlingtoncityarts.org and http://apache.org website I got a HTTP/1.1 301 Moved Permanently error

image

burlingtoncityarts.org

image

apache.org