yadayada/acd_cli

Stream upload results in a 0b file

solracsf opened this issue · 1 comments

I'm trying to stram a remote dwonload like this:

curl -O "https://remote.tld/file" -H "Host: remote.tld" -H "User-Agent: Mozilla/5.0" -H "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" -H "Accept-Language: fr,fr-FR;q=0.8,en-US;q=0.5,en;q=0.3" --compressed -H "Cookie: SID=hPCemo4HnNa1Cp3GWfo7OfgPTyf5iGGXMsvY1djqXuPvQDSucb=CEb=kyVvSId5N" -H "Connection: keep-alive" -H "Upgrade-Insecure-Requests: 1" | acdcli stream file.zip /Uploads

But it results in a zero bytes files on Amazon.

If i omit the | acdcli stream file.zip /Uploads part, file is correctly downloaded locally.

Is this an issue, am i doing it wrong or is this an expected behavior?

@acs-ferreira what happens if you use acdcli's fuse mount, and stream to a new file at the mounted location?