I know how to retrieve a html-document using telnet manually, but how can
I do it using a script? I tried but couldn't get it to work correctly.
I'm using Bash.
Here's what I tried:
telnet < script-file >& html-file
my 'script-file' was:
-- begin file --
GET /index.html HTTP/1.0
-- end file --
I know the aswer should be simple, but I'm kinda new to this stuff so...
Thanks in advance,
You know you've achieved perfection in design,
Not when you have nothing more to add,
But when you have nothing more to take away.
Antoine de Saint Exupery