我正在学习一些网络知识,但在第一个练习中遇到了问题:
我应该使用 telnet 向 httpbin.org 发送一个基本的 HTTP GET 请求。
这是我输入的内容:
$ telnet www.httpbin.org 80
Trying 23.23.171.5...
Connected to www.httpbin.org.herokudns.com.
Escape character is '^]'.
GET /ip HTTP/1.0
Run Code Online (Sandbox Code Playgroud)
这就是我得到的:
HTTP/1.1 400 Bad Request
Server: Cowboy
Date: Tue, 09 Jan 2018 20:06:36 GMT
Content-Length: 0
Run Code Online (Sandbox Code Playgroud)
我究竟做错了什么?