0
我一直在尝试彻底理解HTTP POST请求/响应过程,尽管在google上有很多资源,但没有一个明确地给我答案。了解HTTP POST请求/响应过程
示例方案:
我有一个搜索表单,我输入一些查询和发出请求。然后我重定向到搜索结果页面。
有人可以解释这个过程;特别是,我对重定向最感兴趣。
这是我认为正在发生的事情:
POST request containing query
|
v
Server receives request.
|
V
Server sends back response containing the page that the client should subsequently request.
|
V
Client receives response and requests page indicated in the response.
|
V
Server receives request and sends back requested page.
|
V
Client renders page.
真棒,感谢您的确认 – Robbo