Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I can send telnet command to but not to

On windows telnet I typed the following:

set localecho
set crlf
o 80

It returns 400-bad request, why?

I know I should use HTTP 1.1 the problem is I cannot even connect to the server it closes it after sending 404 error. Why?

share|improve this question

migrated from Aug 17 '09 at 19:07

This question came from our site for professional and enthusiast programmers.

I can get it to work here (Linux) by using HTTP 1.1 commands.

Try something along the lines of:

GET /foobar HTTP/1.1

Followed, of course, by two newlines. One of the headers returned by tinyurl is

Server: TinyURL/1.6

Which suggests that they do use a custom webserver that does not accommodate HTTP 0.9/1.0 requests.

share|improve this answer
The last statement is incorrect. The response header begins with HTTP/1.1 which is the highest version of HTTP that the server supports. The Server header is completely irrelevant. – Sean Bright Aug 17 '09 at 20:56
Michiel wrote "one of the headers", which is correct:… It does support HTTP 1.0 though (when used with Host header) and should not respond with 400 Bad Request when just opening the connection. Rebol needs to provide more details about the desired request. – Arjan Aug 18 '09 at 11:09
@Arjan - The Server header has nothing to do with HTTP version supported by the HTTP server (so the suggestion that their web server "does not accommodate HTTP 0.9/1.0" is completely erroneous). – Sean Bright Aug 18 '09 at 14:02
Ah, you wrote the last statement, so: you were referring to the which suggests part. (I somehow thought you were saying that the quoted header itself was false information.) You're totally right, the first header indeed indicates the server is supposed to support 1.1 and earlier. – Arjan Aug 20 '09 at 21:16

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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