Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
I think you're getting 400 because you're sending the wrong HTTP request, like just pressing Enter (sending an empty command).
Everything works for me
telnet google.com 80
GET
I get:
HTTP/1.0 302 Found 00:22Cache-Control: private
Content-Type: text/html; charset=UTF-8
Referrer-Policy: no-referrer
Location: http://www.google.com.ua/?gfe_rd=cr&ei=gWz-WJaQCOmv8wephqjgDQ
Content-Length: 262
Date: Mon, 24 Apr 2017 21:22:09 GMT
<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
<TITLE>302 Moved</TITLE></HEAD><BODY>
<H1>302 Moved</H1>
The document has moved
<A HREF="http://www.google.com.ua/?gfe_rd=cr&ei=gWz-WJaQCOmv8wephqjgDQ">here</A>.
</BODY></HTML>
Connection to host lost.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question