"Lab": 2.2: Telnet, NC, cURL, HTTP
Part 1: telnet
- Command:
telnet localhost 8008
- Web request text
GET /index.html
- Response:
Part 2: nc
- Command:
nc -C localhost 8008
- Web request text:
OPTIONS /index.html HTTP/1.1
Host: localhost
Connection: close
- NOTE: The trailing newline is important????
- Response:
Netcat had me really stumped
So here's some stuff I looked at to figure out why OPTIONS
wasn't OPTION
-ing:
Part 3: curl
- Command:
curl http://localhost:8008
- Reponse: