How to implement a rename function for a HTTP based file server?

1.1k views Asked by At

I have to implement a HTTP server with some file server capabilities. I'd already coded HTTP HEAD, GET, PUT, and DELETE requests.

Next thing I need to implement something like RENAME or MOVE to change the name of a file which is already stored on the server. But I cannot find an appropriate HTTP request method for this.

Any idea how to do this or might that be not possible?

1

There are 1 answers

0
Joe On

Found WebDAV extensions which added a matching HTTP method MOVE for this.

There is also a method MKCOL to create a directory.