I'm trying to download a file in FTPs server by CURL but when I use 2 commands it will give 2 different results. Example: I have the file fileName.zip have size is 40mb.
When I use the first command:
curl --insecure -u username:password ftps://host:port//download/folder1/fileName.zip --output fileNameDownload.zip
It will return for me the file fileNameDownload.zip with size 40MB, this file is OK.
And I try another way to download this file with the command:
curl --insecure -u username:password ftps://host:port -X "RETR download/folder1/fileName.zip" --output fileNameDownload.zip
It will return for me the file fileNameDownload.zip with size 40.2MB and I cannot open this file.
How to make the second command correct?