如何使用 Telnet 发送 HTTP 请求?

时间:2021-05-22 19:56:36

标签: apache http telnet

我正在尝试使用 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>

0 个答案:

没有答案