如何解决如何使用 Telnet 发送 HTTP 请求?
我正在尝试使用 telnet 请求网站的主页。但是,由于某种原因它不起作用。
Telnet 输出:
GET /index HTTP/1.1
Host: piteusz.ovh
HTTP/1.1 400 Bad Request
Date: Sat,22 May 2021 19:43:25 GMT
Server: Apache/2.4.25 (Debian)
Content-Length: 309
Connection: close
Content-Type: text/html; charset=iso-8859-1
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>400 Bad Request</title>
</head><body>
<h1>Bad Request</h1>
<p>Your browser sent a request that this server could not understand.<br />
</p>
<hr>
<address>Apache/2.4.25 (Debian) Server at vps653930.ovh.net Port 80</address>
</body></html>
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。