I have a Thin server running locally, serving a Rails app. Following an example in the netcat man page, I'm trying to use nc
to talk to my server:
echo -n "GET / HTTP/1.1\r\n\r\n" | nc 0.0.0.0 3000
But I get a 400 response:
HTTP/1.1 400 Bad Request
Content-Type: text/plain
Connection: close
Server: thin 1.6.1 codename Death Proof
What am I missing?