【问题标题】:What's wrong with the http response message in the pictures?图片中的http响应消息有什么问题?
【发布时间】:2021-12-17 19:45:12
【问题描述】:

我的老师告诉我response message中有one error,但我认为没有错误。

请帮帮我, 谢谢。

这是响应消息:

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

【问题讨论】:

    标签: http response httpresponse response-headers


    【解决方案1】:
    Content-Length: 17\r\n
    

    内容超过17个字节:

    <html><head><title>301Moved Permanently</title></head>\r\n
    <body bgcolor="white"><h1>301 Moved Permanently</h1></body></html>\r\n
    

    【讨论】:

    • @ying-po 那么这是否回答了您的问题和/或解决了您的问题? (错误的内容长度是one error
    • 感谢您的回答,您是对的。我现在不能投票,如果可以,我会投票。
    • @YingPo 也许你可以接受答案? :)
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-06-23
    • 1970-01-01
    • 2013-08-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多