Search code examples
httpresponsehttpresponseresponse-headers

What's wrong with the http response message in the pictures?


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


Solution

  • 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