{
  "id": 1259703,
  "title": "Send an HTTP Request by Hand With Netcat",
  "url": "https://urgent.news/2026/08/16/send-an-http-request-by-hand-with-netcat",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-08-16T11:05:18.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/muneebahmedkhanwriting/send-an-http-request-by-hand-with-netcat-m4"
  },
  "original_language": "en",
  "account": "To send an HTTP request using netcat, first verify if netcat is installed and identify the version. If it's not installed, install the appropriate package for your Linux distribution. Next, confirm that port 80 is reachable by running a test with netcat. Store the HTTP request in a variable, ensuring to use single quotes to prevent shell variable expansion. Send the request using printf and pipe it to netcat, which will connect to the specified host and port. The output will include a status line, headers, and the response body. Read the status line to confirm a successful request (HTTP/1.1 200 OK). Examine the headers for additional information, such as Content-Length or Transfer-Encoding. To view the entire response, use the less command. If the response is chunked, locate the first line after the headers. Finally, analyze the end of the response, which should contain a single 0 followed by a carriage return. If the request is intentionally malformed, no output will be displayed.",
  "summary": "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…",
  "key_points": [],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}