E
In order to make a request, it is usually sufficient to send a few titles of the species:GET / HTTP/1.1
Host: ya.ru
and two empty lines after them, only after that, a small delay sufficient to obtain a response is necessary. For example, (contained and team withdrawal):$ { echo -e 'GET / HTTP/1.1\nHost: ya.ru\n\n'; sleep 0.5; } | telnet ya.ru 80
Trying 93.158.134.3...
Connected to ya.ru.
Escape character is '^]'.
HTTP/1.1 302 Found
Server: nginx
Date: Tue, 26 Apr 2016 16:01:28 GMT
Content-Length: 0
Connection: keep-alive
Cache-Control: no-cache,no-store,max-age=0,must-revalidate
Location: https://ya.ru/
Expires: Tue, 26 Apr 2016 16:01:28 GMT
Last-Modified: Tue, 26 Apr 2016 16:01:28 GMT
P3P: policyref="/w3c/p3p.xml", CP="NON DSP ADM DEV PSD IVDo OUR IND STP PHY PRE NAV UNI"
Set-Cookie: yandexuid=9932749951461686488; Expires=Fri, 24-Apr-2026 16:01:28 GMT; Domain=.ya.ru; Path=/
Connection closed by foreign host.
It's just an index page. GET - Just... /(d) website http://ya.ru. In this case, we received a response-redirection. https://ya.ru♪And that's how you get a picture at the address. https://yastatic.net/morda-logo/i/apple-touch-icon/ru-76x76.png:$ { echo -e 'GET /morda-logo/i/apple-touch-icon/ru-76x76.png HTTP/1.1\nHost: yastatic.net\n\n'; sleep 0.5; } | telnet yastatic.net 80
Trying 178.154.131.215...
Connected to yastatic.net.
Escape character is '^]'.
HTTP/1.1 200 OK
Server: nginx/1.8.1
Date: Tue, 26 Apr 2016 16:05:06 GMT
Content-Type: image/png
Content-Length: 734
Connection: keep-alive
Last-Modified: Mon, 25 Apr 2016 13:08:05 GMT
ETag: "571e16b5-2de"
Expires: Thu, 31 Dec 2037 23:55:55 GMT
Cache-Control: max-age=315360000
Cache-Control: public
Access-Control-Allow-Origin: *
Timing-Allow-Origin: *
Accept-Ranges: bytes
здесь идут бинарные данные, которые я не копировал
Connection closed by foreign host.
This conclusion can be redirected to the file:$ { echo -e 'GET /morda-logo/i/apple-touch-icon/ru-76x76.png HTTP/1.1\nHost: yastatic.net\n\n'; sleep 0.5; } | telnet yastatic.net 80 > some.file
Connection closed by foreign host.
It's true, in that case, the server's answer will fall into the file, and that's all those e-mails.Remove them, for example, by " letting them through " sedA programme that will remove all lines from the first and first empty lines (the empty line ends the list of headings):$ { echo -e 'GET /morda-logo/i/apple-touch-icon/ru-76x76.png HTTP/1.1\nHost: yastatic.net\n\n'; sleep 0.5; } | telnet yastatic.net 80 | sed '1,/^$/d' > some.file
Connection closed by foreign host.