Tech
Send an HTTP Request by Hand With Netcat
Type a raw HTTP request into a TCP socket, read back a real 200 OK , then watch one wrong character kill it. No browser, no library.
Prerequisites
A Linux terminal (any distro; a VM is fine)
bash or zsh
Internet access
Steps
1. Check for netcat and identify the variant.
which nc && nc -h 2>&1 | head -1
Expect: a path such as /usr/bin/nc , then a line naming the build β OpenBSD netcat or Ncat 7.xx . Write down...
Read the full discussion on Dev.to
This article was aggregated from Dev.to. Click to join the conversation.
View on Dev.to