Intro to Web

What is a website β‡’ is Files and codes on a server, (HTML, CSS , JavaScript ), when u reach out with your browser, you’re going to pull these files using HTTP/HTTPS

HTTP Protocol Basics

What is HTTP β‡’ is the most used application protocol on the Internet. use to transfer web pages and web application data

<aside> πŸ’‘ In HTTP, the client, usually a web browser, connects to a web server such as MS IIS or Apache HTTP Server

</aside>

How HTTP Work

The client sends requests to the server and gets back responses

HTTP works on top of TCP protocol.

0_lOSpveVU-UAzsUM3.webp

HTTP Requests

Request β‡’ when u call functions or click on thing on website the browser sent request to server to perform these thing or what u want to do .


Response β‡’ when the browser sent request to the server to perform your request , server send response to browser to see what the result of this request

1_QMTaTVpbu89TFQzD76cIWQ.webp

The first line of a Response message is the Status-Line

The more common status codes are:

β€’ 200 OK: the resource is found.

β€’ 301 Moved Permanently: the requested resource has been assigned a new permanent URI.

β€’ 302 Found: the resource is temporarily under another URI.

β€’ 403 Forbidden: the client does not have enough privileges, and the server refuses to fulfill the request.

β€’ 404 Not Found: the server cannot find a resource matching the request.

β€’ 500 Internal Server Error: the server does not support the functionality required to fulfill the request

HTTPS β‡’ it’s HTTP protocol with TLS certification , so the difference between HTTP and HTTPS β‡’ instead of used SSL we use TLS so the network traffic if u intercept it it will be Encrypted

dirb <url> β‡’ to scan for open directories on website