Web Dav overwrite files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi All

How do I setup the Web Dav module to allow overwriting of files on the server?

Example:
The first time I send a file to the server I get this:

Client request:
> PUT /radar%2Ebin HTTP/1.1
> User-Agent: curl/7.19.7 (i486-pc-linux-gnu) libcurl/7.19.7 OpenSSL/0.9.8k zlib/1.2.3.3 libidn/1.15
> Host: 10.84.67.129
> Accept: */*
> Content-Length: 31457280
> Expect: 100-continue

Server respone:
< HTTP/1.1 201 Created
< Date: Mon, 21 Jan 2013 09:52:31 GMT
< Server: Apache/2.0.64 (Unix) PHP/5.0.4 DAV/2
< Location: http://10.84.67.129/radar.bin
< Content-Length: 276
< Content-Type: text/html; charset=ISO-8859-1

Now the file "radar.bin" is created on my server, but I want to
overwrite it so I do this:
Client Request:
> PUT /radar%2Ebin HTTP/1.1
> User-Agent: curl/7.19.7 (i486-pc-linux-gnu) libcurl/7.19.7 OpenSSL/0.9.8k zlib/1.2.3.3 libidn/1.15
> Host: 10.84.67.129
> Accept: */*
> Content-Length: 31457280
> Expect: 100-continue

Server reponse:
< HTTP/1.1 204 No Content
< Date: Mon, 21 Jan 2013 09:52:42 GMT
< Server: Apache/2.0.64 (Unix) PHP/5.0.4 DAV/2
< Content-Length: 0
< Content-Type: application/octet-stream


I use the curl utility as a client:
curl -v -o resp23.htm -T "radar.bin" --noproxy 10.84.67.129 10.84.67.129


--
Johan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux