大网数据广告活动
网络与域名解析

Close-Session

· 52CE 我爱测

Use the Close-Session packet to tell the BITS server that file upload is complete and to end the session.

Use the Close-Session packet to tell the BITS server that file upload is complete and to end the session.

BITS_POST remote-URL HTTP/1.1
BITS-Packet-Type: Close-Session
BITS-Session-Id: {guid}

Headers

BITS_POST

BITS-specific verb that identifies this packet to the BITS server.

Replace remote-URL with the absolute or relative URI. Typically, replace remote-URL with the remote file name of the job. For network load balancing considerations, see the BITS-Host-Id header in the Create-Session packet.

BITS-Packet-Type

Identifies this request packet as a Close-Session packet.

BITS-Session-Id

String GUID that identifies the session to the server. Replace {guid} with the session identifier that the server returns in the Ack for Create-Session response packet.

Remarks

The BITS server releases all resources and deletes all temporary files when it receives this packet.

For upload-reply jobs, you must download the reply before sending Close-Session. Otherwise, the reply is lost.

If you send this packet before uploading all fragments, the upload file is deleted; you cannot upload a partial file.

See also

Ack for Close-Session

Cancel-Session

Create-Session

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。