6 lines
499 B
Bash
Executable File
6 lines
499 B
Bash
Executable File
#!/bin/bash
|
|
# one WebDAV PUT of the 1.5 GiB file, as a browser or client would send it; print only the answer's status + title
|
|
curl -sk -u "odon:$PW" -T /root/data/nextcloud/Csalad/nagy_fajl_1_5GB.bin --max-time 120 -o /root/work/bigput.out -w "%{http_code} after %{time_total}s, sent %{size_upload} B\n" \
|
|
"https://cloud.tester4.test/remote.php/dav/files/odon/Csalad/nagy_fajl_1_5GB.bin"
|
|
grep -o "<title>[^<]*</title>\|<h1>[^<]*</h1>" /root/work/bigput.out | head -3; rm -f /root/work/bigput.out
|