我意识到这可能听起来像一个奇怪的问题,但我在网络电话中看到了一些奇怪的结果,所以我想弄清楚我是否误解了一些东西.
我看到在孤立事件中,当我上传数据时,即使响应为200,数据也不会出现在服务器上.我的猜测是,在初始HTTP握手期间,200响应到达,然后事后出现问题.这是对事件顺序的正确解释吗?或者,一旦服务器收集了发送标头告诉它在请求中的任何数据,就交付200了吗?(因为如果是这样的话,我会回到绘图板上,看看我看到的是什么).
这意味着它已经成功完成.来自HTTP /1.1规范
10.2.1 200 OK
The request has succeeded. The information returned with the response is dependent on the method used in the request, for example:
GET an entity corresponding to the requested resource is sent in the response;
HEAD the entity-header fields corresponding to the requested resource are sent in the response without any message-body;
POST an entity describing or containing the result of the action;
TRACE an entity containing the request message as received by the end server.
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
158 次 |
| 最近记录: |