Hi > -----Original Message----- > From: A Felix [mailto:[EMAIL PROTECTED]] > Sent: Friday, August 30, 2002 5:23 PM > To: Slide Users Mailing List > Subject: Re: Create New file. > > I think this will need one HEAD request and one PUT, > something like, > > a) send HEAD /path/file > b) if status is 404, PUT /path/file > else > return false >
This would leave a small time gap between a) and b) where someone else could create a resource with the same name. To prevent this one can enclose the requests with LOCK/UNLOCK requests. Greetings. Olli -- Ceyoniq Technology -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
