I need to download *.tar.gz
file from server but when I do that, I get an error
ERROR: The ./files.tic seems to be corrupted.
I think it is because it has been downloaded in ASCII mode, and I need to download in binary mode.
How to run wget
in binary mode? Or any other command to get binary file.
This file is from http
, not ftp
.
Use chmod + x <filename> at the prompt to make a . bin file executable. Once the BIN file is executable, you can run it using the command ./<filename> or by double-clicking the file in your file manager.
The wget package is pre-installed on most Linux distributions today. To check whether the Wget package is installed on your system, open up your console, type wget , and press enter. If you have wget installed, the system will print wget: missing URL . Otherwise, it will print wget command not found .
In order to download a file using Wget, type wget followed by the URL of the file that you wish to download. Wget will download the file in the given URL and save it in the current directory.
AFAIK the MIME type for the file does not change its contents. So you should be already getting the right representation of it. HTTP protocol does not have text/binary types for data. Data is data :)
See http://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol#Response_message for further info.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With