Thanks, Leandro! But specifying the version of HTTP just creates a different error:
No HTTP version information:
eric@foobar:~/Projects/elasticsearch-7.9.2$ telnet 127.0.0.1 9200
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
GET /
HTTP/1.0 400 Bad Request
content-type: application/json; charset=UTF-8
content-length: 203
{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"text is empty (possibly HTTP/0.9)"}],"type":"illegal_argument_exception","reason":"text is empty (possibly HTTP/0.9)"},"status":400}Connection closed by foreign host.
When specifying HTTP version 1.0:
eric@foobar:~/Projects/elasticsearch-7.9.2$ telnet 127.0.0.1 9200
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
GET / HTTP/1.0
.
HTTP/1.0 400 Bad Request
content-type: application/json; charset=UTF-8
content-length: 165
{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"No colon found"}],"type":"illegal_argument_exception","reason":"No colon found"},"status":400}Connection closed by foreign host.
When specifying HTTP version 1.1:
eric@flex-5:~/Projects/elasticsearch-7.9.2$ telnet 127.0.0.1 9200
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
GET / HTTP/1.1
.
HTTP/1.1 400 Bad Request
content-type: application/json; charset=UTF-8
content-length: 165
{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"No colon found"}],"type":"illegal_argument_exception","reason":"No colon found"},"status":400}
Notice that, in the last session, the foreign host doesn't close the connection!
Ideas? Suggestions?
TIA,
Eric P.
Portland, Oregon