Platform SDK: Exchange 2000 Server |
[This is preliminary documentation and subject to change.]
The MKCOL method creates a new collection (folder) at the source URL. When invoked without a request body, it will create no members. When used with a request body, you can create members and properties on the collections or members.
MKCOL /bar HTTP/1.1
Content-Type: text/xml; charset="utf-8"
The following script creates a folder.
dim strURL
strURL = "http://myserver/public/docs/test/"
set req = createobject("microsoft.xmlhttp")
req.open "MKCOL", strURL, false, "TheDomain\Administrator", "thepassword"
req.setrequestheader "Translate", "f"
req.setrequestheader "Content-Type", "text/xml"
req.setrequestheader "Depth", "0"
req.send ""
A valid response is HTTP/1.1 201 Created.
Note This method fails if the parent folder is selected under the M: drive in the Exchange Installable File System.