【发布时间】:2021-07-23 20:57:52
【问题描述】:
我试图这样做:
Telnet 进入 Web 服务器并发送多行请求消息。在请求消息中包含 If-modified-since: 标题行,以强制使用 304 Not Modified 状态代码的响应消息。
所以我做了下面的步骤
telnet example.com 80
然后
GET /index.html HTTP/1.1
Host: example.com
然后两个进入。 我得到了一些信息。 我加了
If-modified-since: Thu, 17 Oct 2019 06:18:26 GMT
但仍然没有 304 未修改。
this is what I get after GEt and Host
和
HTTP/1.0 501 Not Implemented
Content-Type: text/html
Content-Length: 357
Connection: close
Date: Fri, 30 Apr 2021 16:10:33 GMT
Server: ECSF (dcb/7F80)
【问题讨论】:
-
你现在得到什么状态码?
-
@Exampleperson 我真的很困惑,在 GET 和 Host 之后它给了我一些信息和一些代码,当我再次输入时,如果再次修改一些代码和“连接丢失”。
-
服务器可能有问题。
-
显示完整的请求。
-
@Exampleperson 它隐藏在 cmd 中,这正是我上面写的。我做错什么了吗??
标签: networking telnet