This question already has an answer here:

I am trying to telnet to different web servers and see what http response messages I get. I've tried telnet some_host_name 80, and then the shell says connected to some_host_name escape character is '^]'. How exactly do I get the http response message?

marked as duplicate by thrig, Jakuje, Thomas Dickey, chaos, Jeff Schaller Jan 30 '16 at 1:33

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


After telnet connects type: GET /

telnet stackoverflow.com 80      
Connected to stackoverflow.com.                                                                                                                               
Escape character is '^]'.
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en-US"> <![endif]-->
<!--[if IE 7]>    <html class="no-js ie7 oldie" lang="en-US"> <![endif]-->
<!--[if IE 8]>    <html class="no-js ie8 oldie" lang="en-US"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en-US"> <!--<![endif]-->

You can also use curl utility.

Not the answer you're looking for? Browse other questions tagged or ask your own question.