Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

http protocol and file downloading

0 views
Skip to first unread message

Michele Giordano

unread,
Nov 5, 2009, 1:15:30 PM11/5/09
to
Hi,
I noticed that if a connection is interrupted (or it is too slow)
while downloading a file, i..e. a large pdf, from a server (using save
as... pop-up in the browser) the browser closes the download, and
saves the file as it had completed (but if you check the dimension is
smaller than the complete file). If you try to open it with a proper
software, you get a 'damaged file' error.

I guess it depends on the fact the browser closes the connection in
certain condition and the browser supposes the transmission of the
file has completed when the connection is closed.

Anybody knows if this analysis is correct and if it is possible to
configure the web-server to send some header settings which minimize
this kind of error?

thanks,
m.

Davide Bianchi

unread,
Nov 10, 2009, 9:40:50 AM11/10/09
to
On Nov 5, 7:15 pm, Michele Giordano <mjj...@gmail.com> wrote:
> I noticed that if a connection is interrupted (or it is too slow)
> while downloading a file, i..e. a large pdf, from a server (using save
> as... pop-up in the browser) the browser closes the download, and
> saves the file as it had completed (but if you check the dimension is
> smaller than the complete file). If you try to open it with a proper
> software, you get a 'damaged file' error.

The browser doesn't "close as it had completed". If you kill the
connection or it is terminated, the file will be closed and that's
it.
This because http is _not_ designed to transfer huge amount of data
and shouldn't be used as such. If you want to transfer files use FTP,
SFTP or SCP.

Davide

0 new messages