wget don't download complete file

I am using ubuntu 10.04 LTS
I tried to download the file using wget , the file size is 105.00 MB, but wget downloads only around 44K.

may be I am using wget in wrong way, any suggestions please?

Below is the command I used and the response from system.

wget --tries=10 -nd -nH --use=user --password=password   fileserve.com/file/ZTDtvBt/Winnie.the.Pooh_Seasons.of.Giving.1999.DVDRip.XviD.part2.rar
--2011-01-10 14:28:36--  http://www.fileserve.com/file/ZTDtvBt/Winnie.the.Pooh_Seasons.of.Giving.1999.DVDRip.XviD.part2.rar
Resolving www.fileserve.com... 209.222.23.222
Connecting to http://www.fileserve.com|209.222.23.222|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `Winnie.the.Pooh_Seasons.of.Giving.1999.DVDRip.XviD.part2.rar'

    [   <=>                                                                                                                         ] 43,015      89.2K/s   in 0.5s    

2011-01-10 14:28:37 (89.2 KB/s) - `Winnie.the.Pooh_Seasons.of.Giving.1999.DVDRip.XviD.part2.rar' saved [43015]

Thank you very much

Open the downloaded file with your editor of choice. It's probably an HTML file containing an error message, plus the request to log in.

pludi, it seems the OP is trying to download a rar zipped video file, not an HTML file.

I know. But I've had the experience that, especially with sites that need session cookies or proper referrers, wget will save the error page with the same name as the file that should be downloaded.

Hmmmm. Even the command line syntax is not correct, for example:

--use=user

should be:

--user=user

my apologies , that was a typo, I wanted to remove the actual username and password, and resulted in typo.

wget -r --tries=10 -nd -nH --user=user --password=password http://www.fileserve.com/file/eMq4P7s/Winnie.the.Pooh_Seasons.of.Giving.1999.DVDRip.XviD.part1.rar

the above command downloaded 44K size of rar file, but I could not open the rar file , the error message while opening is file is damaged or incorrect format.

please suggest me correct syntax, I am unable to open rar file so I can't see what is the message in the file.

I used user name and password so i don't think the problem is with user name and password.

Thanks again.

Hi.

It's the incorrect format, probably for the reason pludi states in post #2.

Use a text editor to open the file, or cat it, to see what's in it.

Also, you can get a hint at the contents using the man file (Linux) utility, if available. If the result is "HTML document text" (or something alike) you didn't download an archive but a webpage.

The op already stated they cannot open it. It is a partial download of a rar file, as the op said. HTML error messages are not 44k in size. It is a partial download as the posted.

I believe he is trying to open it using RAR software (whatever that's called on Ubuntu).

If the server returned an error (i.e. 404 or authentication error) it would likely be the same HTML page you would see in a web browser. That could be any size.

In any case is Winnie the Pooh film free?

Just for fun I tried the download like the OP. It is an HTML "error message", 44k in size, telling the user that there's no valid login and that you should provide credentials (because there's no session cookie).

@LinuxLearner: the --user and --password options only work with FTP or HTTP Basic Authentication, but not with Form-based (eg: input boxes) / session cookie authentication. For that you'll have to resort to screen-scraping, or create a file with a valid cookie, and supply that via the --load-cookies parameter.