CURL compressed upload

 

 

work in progress, still trying to make it fly

 

For curl users, there's a --compressed option on download, but none to do the same when uploading.

There was a few attempts by people to add compression support to curl within upload.

For various reasons over the last 12 years they all went nowhere.

 

But we'd love to not waste gigabytes of WAN bandwidth whilst using WebDAV... So what to do?

 

This should work:

gzip -1 -c file | \
curl -d@-  -H "content-type:application/octet-stream" http://server/path

Doesn't.

 

References:

https://curl.haxx.se/mail/archive-2011-05/0004.html

https://curl.haxx.se/mail/lib-2004-04/0028.html