Example in Action
Let’s create the scenario of retrieving the homepage of google website:
Here, in this image GET / HTTP/1.1 represents the GET Request of / path for the targeted host: “google.com”
How to make an HTTP GET request manually with netcat?
Netcat,also known as “nc”, is a powerful Unix-networking utility that enables users to interact with network services through a command-line interface (CLI). It uses both TCP and UDP network protocols for communication and is designed to be a reliable back-end tool to instantly provide network connectivity to other applications and users. Although Netcat is more often known for its use in file transfers and port scanning, it can also act as an HTTP client and send and accept raw HTTP requests.