OurBigBook About$ Donate
 Sign in+ Sign up
by Ciro Santilli (@cirosantilli, 37)

Ciro's nc HTTP test server

 ... Information technology Computer Computer network Networking hardware Server (computing) Test server
 0 By others on same topic  0 Discussions  Updated 2025-05-29  +Created 1970-01-01  See my version
As per stackoverflow.com/a/52351480/895245 our standard test setup is:
while true; do
  resp=$"$(date): hello\n"
  len="$(printf '%s' "$resp" | wc -c)"
  printf "HTTP/1.1 200 OK\r\nContent-Length: $len\r\n\r\n${resp}\n" | nc -Nl 8000
done

 Ancestors (9)

  1. Test server
  2. Server (computing)
  3. Networking hardware
  4. Computer network
  5. Computer
  6. Information technology
  7. Area of technology
  8. Technology
  9.  Home

 Incoming links (1)

  • tcpdump

 View article source

 Discussion (0)

+ New discussion

There are no discussions about this article yet.

 Articles by others on the same topic (0)

There are currently no matching articles.
  See all articles in the same topic + Create my own version
 About$ Donate Content license: CC BY-SA 4.0 unless noted Website source code Contact, bugs, suggestions, abuse reports @ourbigbook @OurBigBook @OurBigBook