This can be useful when debugging many application level protocols. For instance:
% telnet stackoverflow.com http HEAD / HTTP/1.1 Host: stackoverflow.com
returns the HTTP headers on the first page of stackoverflow.com.
Although netcat ( man 1 nc ) is more versatile in such tasks.
source share