You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by eric leung <ch...@yahoo.com> on 2001/04/19 00:07:56 UTC

acknowledgment from web client

Hi,
I have a servlet serves files for web browser.

How can I know if the HTTP web browser had:
1) finished download 100% of the file, or;
2) only downloaded 50% of the file then click cancel,
or;
3) only downloaded 70% then reboot the machine

i think the TCP/IP layer (socket) will keep track of
acknowlegament send back from client. but how do i
implement this in my servlet? how do i (servlet) know
how many bytes client had receive? 

I am now using apache + tomcat.  I heard tomcat has
problem getting  acknowlegament from client. since
tomcat is seperated by apache server from client (it's
a tomcat bug also). Any one knows how to fix this
problem?   
Web-browser --> apache --> tomcat

thanks.


__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

Re: acknowledgment from web client

Posted by eric leung <ch...@yahoo.com>.
To make it clear:
My question is how server (SERVLET) knows if (web
browser) finish download 100% of the file. 

If user had downloaded the whole file. user cannot
re-download the file again.  If user click cancel in
the middle or didn't download 100% of a file -->
server will knows it and user can download it again.

Thanks.

--- eric leung <ch...@yahoo.com> wrote:
> Hi,
> I have a servlet serves files for web browser.
> 
> How can I know if the HTTP web browser had:
> 1) finished download 100% of the file, or;
> 2) only downloaded 50% of the file then click
> cancel,
> or;
> 3) only downloaded 70% then reboot the machine
> 
> i think the TCP/IP layer (socket) will keep track of
> acknowlegament send back from client. but how do i
> implement this in my servlet? how do i (servlet)
> know
> how many bytes client had receive? 
> 
> I am now using apache + tomcat.  I heard tomcat has
> problem getting  acknowlegament from client. since
> tomcat is seperated by apache server from client
> (it's
> a tomcat bug also). Any one knows how to fix this
> problem?   
> Web-browser --> apache --> tomcat
> 
> thanks.
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great
> prices
> http://auctions.yahoo.com/


__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/