curl / Mailing Lists / curl-users / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: Reg Input to curl from tar command compressed output

From: Daniel Stenberg via curl-users <>
Date: Mon, 6 Apr 2020 23:12:30 +0200 (CEST)

On Mon, 6 Apr 2020, murugan balraj wrote:

> tar --create --file=- --directory=/dir1 ./ | gzip -c | curl -T- -d "@-"

-d is for POST, -T is for PUT. Doesn't the man page make this pretty clear?

Which method is it you want? HTTP upload is often done with a multipart
formpost even, and then you want -F...

(and please, don't top-post on this mailing list)

  / | Commercial curl support up to 24x7 is available!
                   | Private help, bug fixes, support, ports, new features
Received on 2020-04-06