On lines 1 and 2, a small text file is created in /tmp/sample.txt. On line 3 cadaver is started and on line 4 open command is started. It send an OPTIONS request to find whether the url supports WebDAV and then a PROPFIND request to retrieve a listing of the files in the corresponding collection. On line 5 the file is uploaded using put which issues a PUT request. Then the connection to the server is closed with close and the client is exited. The file sample.txt is uploaded to the server and it can be accessed at http://localhost/firstdav/sample.txt.