niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » Solaris
need wget binary transfer mode
Post new topic   Reply to topic Page 1 of 1 [8 Posts] View previous topic :: View next topic
Author Message
victorfeng1973@yahoo.com
*nix forums beginner


Joined: 26 Oct 2005
Posts: 33

PostPosted: Thu Jul 20, 2006 9:03 pm    Post subject: need wget binary transfer mode Reply with quote

I use wget to get some file:
Quote:
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.

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

PostPosted: Thu Jul 20, 2006 9:16 pm    Post subject: Re: need wget binary transfer mode Reply with quote

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

PostPosted: Thu Jul 20, 2006 9:49 pm    Post subject: Re: need wget binary transfer mode Reply with quote

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

PostPosted: Thu Jul 20, 2006 9:54 pm    Post subject: Re: need wget binary transfer mode Reply with quote

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

PostPosted: Fri Jul 21, 2006 1:11 am    Post subject: Re: need wget binary transfer mode Reply with quote

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

PostPosted: Fri Jul 21, 2006 1:17 am    Post subject: Re: need wget binary transfer mode Reply with quote

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





PostPosted: Fri Jul 21, 2006 2:36 am    Post subject: Re: need wget binary transfer mode Reply with quote

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

PostPosted: Fri Jul 21, 2006 1:27 pm    Post subject: Re: need wget binary transfer mode Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [8 Posts] View previous topic :: View next topic
The time now is Sat Nov 22, 2008 9:18 pm | All times are GMT
navigation Forum index » *nix » Solaris
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Transfer qmail email account to postfix server tallman Postfix 0 Thu Jun 05, 2008 12:43 pm
No new posts how to transfer Linda NY Solaris 4 Fri Jul 21, 2006 5:30 am
No new posts understanding submission mode / sender:-header not added Heiko Schlittermann Exim 0 Wed Jul 19, 2006 9:52 pm
No new posts installing depots in single-user mode Zak. HP-UX 2 Wed Jul 19, 2006 4:06 pm
No new posts Binary Files Ronin C++ 8 Wed Jul 19, 2006 3:12 pm

Xbox Mod Chip | Internet Advertising | Mortgages | Mortgage Loans | Best Credit Cards
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1227s ][ Queries: 16 (0.0372s) ][ GZIP on - Debug on ]