UNSUBSCRIBE Method

UNSUBSCRIBE Method

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release. The WebDAVUNSUBSCRIBE method is used to end a subscription to a resource.

The Subscription-ID Header is mandatory and must contain one or more subscription IDs to be cancelled.

Note  See Authentication and Security Using WebDAV for more information.

The list of WebDAV Protocol Status Codes in the following table is not comprehensive. For information about 500-level status codes, see WebDAV Status Codes: 500s.

Status Codes

Status Code Meaning
200 (OK) The subscription was cancelled.
207 (Multi-Status) Multiple response codes to be found in XML body.
400 (Bad Request) Probably an illegal combination of headers or invalid Subscription-ID Header.

Example

The following is an example of a client terminating subscription 16 on the host www.contoso.com.

Request

UNSUBSCRIBE /public/subtest HTTP/1.1
Host: www.contoso.com
Subscription-id: 16

Response

HTTP/1.1 207 Multi-Status
Server: Microsoft-IIS/5.0
Date: Fri, 06 Jul 2001 22:03:15 GMT
Content-Type: text/xml
Content-Length: 273

<?xml version="1.0"?>
<a:multistatus xmlns:b="https://schemas.microsoft.com/Exchange/" xmlns:a="DAV:">
  <a:response>
    <a:href>https://www.contoso.com/public/subtest</a:href>
    <a:status>HTTP/1.1 200 OK</a:status>
    <b:subscriptionID>
      <li>16</li>
    </b:subscriptionID>
  </a:response>
</a:multistatus>

Send us your feedback about the Microsoft Exchange Server 2003 SDK.

This topic last updated: December 2002

Build: June 2007 (2007.618.1)

© 2003-2006 Microsoft Corporation. All rights reserved. Terms of use.