my teacher tell me that there is one error
in the response message
, But I think there is no error.
Please help me out, thanks.
Here is the response message:
HTTP/1.1 301 Moved Permanently\r\n
Server: nginx \r\n
Content-Type: test/html\r\n
Date: Thu, 18 Oct 2018 08:08:24 GMT\r\n
Location: https://www.bbc.co.uk/\r\n
Content-Length: 17\r\n
Connection: Keep-Alive\r\n
\r\n
<html><head><title>301Moved Permanently</title></head>\r\n
<body bgcolor="white"><h1>301 Moved Permanently</h1></body></html>\r\n
The picture of the response message
CodePudding user response:
Content-Length: 17\r\n
The content is longer than 17 bytes:
<html><head><title>301Moved Permanently</title></head>\r\n
<body bgcolor="white"><h1>301 Moved Permanently</h1></body></html>\r\n
CodePudding user response:
According to the definition in rfc2068 about 301Moved Permanently:
Unless the request method was HEAD, the entity of the response SHOULD
contain a short hypertext note with a hyperlink to the new URI(s).
Thus, there should be a hyberlink to the new URI in the response massage.