| Author |
Message |
victorfeng1973@yahoo.com *nix forums beginner
Joined: 26 Oct 2005
Posts: 33
|
Posted: Thu Jul 20, 2006 9:03 pm Post subject:
need wget binary transfer mode
|
|
|
I use wget to get some file:
ASCII transfer mode. Looking at the output from "wget --help", I can
not find any option to be used for binary mode.
| Quote: | wget -V
GNU Wget 1.7 |
Thank you,
Victor |
|
| Back to top |
|
 |
John D Groenveld *nix forums Guru
Joined: 19 Feb 2005
Posts: 699
|
Posted: Thu Jul 20, 2006 9:16 pm Post subject:
Re: need wget binary transfer mode
|
|
|
In article <1153429403.818151.94800@s13g2000cwa.googlegroups.com>,
<victorfeng1973@yahoo.com> wrote:
| Quote: | I use wget to get some file:
wget ftp://ftp.company.com/support/Hidden/code.tgz
The downloaded file does not work. So I conclude that the wget uses
ASCII transfer mode. Looking at the output from "wget --help", I can
not find any option to be used for binary mode.
|
Did you use ftp(1) to confirm that the problem is wget(1) and that the
source file is not corrupt??
John
groenveld@acm.org |
|
| Back to top |
|
 |
victorfeng1973@yahoo.com *nix forums beginner
Joined: 26 Oct 2005
Posts: 33
|
Posted: Thu Jul 20, 2006 9:49 pm Post subject:
Re: need wget binary transfer mode
|
|
|
| Quote: | Did you use ftp(1) to confirm that the problem is wget(1) and that the
source file is not corrupt??
|
It is a good question. The username anonymous does not work yet. I just
asked vendor for user/password to ftp.
But how could we tell wget to use BIN or ASC? or does it decide based
on the type of the file?
Victor |
|
| Back to top |
|
 |
Tony Curtis *nix forums addict
Joined: 21 Feb 2005
Posts: 99
|
Posted: Thu Jul 20, 2006 9:54 pm Post subject:
Re: need wget binary transfer mode
|
|
|
| Quote: | On 20 Jul 2006 14:49:40 -0700,
victorfeng1973@yahoo.com said:
Did you use ftp(1) to confirm that the problem is
wget(1) and that the source file is not corrupt??
It is a good question. The username anonymous does not
work yet. I just asked vendor for user/password to ftp.
|
Then how would wget be able to fetch the file at all? |
|
| Back to top |
|
 |
victorfeng1973@yahoo.com *nix forums beginner
Joined: 26 Oct 2005
Posts: 33
|
Posted: Fri Jul 21, 2006 1:11 am Post subject:
Re: need wget binary transfer mode
|
|
|
Hi Tony,
John ask me to use ftp to confirm whether the problem is from the file
itself or not.
Victor |
|
| Back to top |
|
 |
Tony Curtis *nix forums addict
Joined: 21 Feb 2005
Posts: 99
|
Posted: Fri Jul 21, 2006 1:17 am Post subject:
Re: need wget binary transfer mode
|
|
|
| Quote: | On 20 Jul 2006 18:11:51 -0700,
victorfeng1973@yahoo.com said:
Hi Tony, John ask me to use ftp to confirm whether the
problem is from the file itself or not.
|
Right, but previously you claimed that wget had already
downloaded from the URL in question, and that the
resulting file wasn't what you expected.
Then you said that anonymous ftp doesn't work, and you
don't have an account/password for ftp either.
So the question remains: if neither account-based nor
anonymous FTP is currently possible, how did wget manage
to download from the same FTP site before?
hth
t |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Fri Jul 21, 2006 2:36 am Post subject:
Re: need wget binary transfer mode
|
|
|
victorfeng1973@yahoo.com wrote:
| Quote: | I use wget to get some file:
wget ftp://ftp.company.com/support/Hidden/code.tgz
The downloaded file does not work. So I conclude that the wget uses
ASCII transfer mode. Looking at the output from "wget --help", I can
not find any option to be used for binary mode.
wget -V
GNU Wget 1.7
Thank you,
Victor
I don't think you need to specify binary or ascii for wget. It'll just |
get whatever it is... For example, I tried to get the Google graphic:
$ wget http://www.google.com/intl/en/images/logo.gif
--hh:mm:ss-- http://www.google.com/intl/en/images/logo.gif
=> `logo.gif'
Resolving www.google.com...
Connecting to www.google.com[...]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 8,558 [image/gif]
100%[====================================>] 8,558 --.--K/s
hh:mm:ss (90.84 KB/s) - `logo.gif' saved [8558/8558]
$ file logo.gif
logo.gif: GIF image data, version 89a, 276 x 110
See? logo.gif is a graphic file - binary, right? But I didn't have to
tell wget that it was binary.
Maybe you had a broken code.tgz. Did you try running "file code.tgz" to
perform a sanity check?
HTH |
|
| Back to top |
|
 |
victorfeng1973@yahoo.com *nix forums beginner
Joined: 26 Oct 2005
Posts: 33
|
Posted: Fri Jul 21, 2006 1:27 pm Post subject:
Re: need wget binary transfer mode
|
|
|
That the anonymous does not work is where the bizzare comes from.
file iSCSI_SANsurfer_4_03_17_solarisSparc_package.tgz
iSCSI_SANsurfer_4_03_17_solarisSparc_package.tgz: gzip compressed
data - deflate method
Victor |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|