表单提交时的 303 响应

此示例中的客户端发送 POST 请求以将表单提交到通用订阅。

httpPOST /subscribe HTTP/1.1

Host: example.com

Content-Type: application/x-www-form-urlencoded

Content-Length: 50

name=Brian%20Smith&email=brian.smith%40example.com

服务器可能会返回一个带有 303 状态和 Location 头部中确认页面的响应,以便用户在收到响应后被重定向到那里。

httpHTTP/1.1 303 See Other

Location: https://www.example.com/confirmation/event/123

Content-Type: text/html; charset=UTF-8

Content-Length: 0