Curl to download using Linux not working

Good Morning.

I'm trying to download a file from a server. I was able to upload to the server successfully but when i download, i see the file name in my server but with some unknow data. The file name i'm trying to download is abcd.zip in binary mode.

curl -1 -v --ftp-pasv -o abcd.zip -u "kumar123" --ftp-ssl ftps://xxx.xxx.com:990/xxx/

Any suggestions are appreciated.

Thanks
KK

In what way is the file damaged? Is its length different?

What happens when you run 'file' on it to determine its type?

Yes, length is different. The actual file length is 700 kb and it's reduced to 100 bytes.

---------- Post updated at 10:41 AM ---------- Previous update was at 10:39 AM ----------

When i open the file after it's downloaded, it has the date and time information of the download but not data.

I notice your script has ftps://xxx.xxx.com:990/xxx/ , not ftps://xxx.xxx.com:990/xxx/filename.zip Try specifying the full name.

Thanks a ton. You are absolutely right. It worked now.

1 Like