I'm trying to write a small discussion-forum type thing based on
Exchange2000 using XMLHTTP requests/WebDAV.
I've got most of the things worked out, but I'm kinda stuck in trying
to create a new message item in a public folder using WebDAV. The
example in the MSDN shows a PROPPATCH request used to create the item
and set its properties, and then a PUT request to set the item's stream
(body). The PROPPATCH works well, but trying to PUT the stream into the
same URL afterwards results in a "403 - Forbidden" error. Trying to do
so the other way around - first the PUT, then PROPPATCH - doesn't
result in an error, but doesn't seem to actually work, either - the
item is created, but the properties aren't saved. If, for instance, I
created the item with the URL along the lines
of "http://server/public/test/fish.eml", "fish.eml" would be the
subject of the message (since I created it with PUT, no properties were
explicitly defined), and no matter how many PROPPATCHs I use to change
the subject to "fish", for instance (without the ".eml") it refuses to
The public folder's permissions give the Editor role to the default and
anonymous user-groups, so it's probably not a matter of permissions.
Can anyone explain this to me, or (better yet) point me to sample code
using XMLHTTP that I can learn from?
Sent via Deja.com