trying to understand the http and headers that I played with telnet to send requests. so as not to enter everything again and again and again, I thought that I would write a small text file with all the commands I needed.
my file is simple:
GET /somefile.php HTTP/1.1 Host: localhost
i then try passing it to telnet with io-redirection:
$ telnet localhost 80 < telnet.txt
but all the output is obtained
Trying ::1... Connected to localhost. Escape character is '^]'. Connection closed by foreign host.
what am I doing wrong?
knittl
source share