最佳答案
I'm trying to issue a GET command to my local server using netcat
by doing the following:
echo -e "GET / HTTP/1.1\nHost: localhost" | nc localhost 80
Unfortunately, I get a HTTP/1.1 400 Bad Request
response for this. What, at the very minimum, is required for a HTTP request?