Re: How to check in CGI if client disconnected

2008-08-25 Thread Graham Dumpleton
On Aug 25, 5:49 pm, Vishal <[EMAIL PROTECTED]> wrote: > Hi Graham, > >    Thanks for the reply. In my case, it's the other way round. I need > to check if the amount of data sent is equal to the file size i want > to send. However, the question is - when do i check this? Currently, i > am unable to

Re: How to check in CGI if client disconnected

2008-08-25 Thread Vishal
Hi Graham, Thanks for the reply. In my case, it's the other way round. I need to check if the amount of data sent is equal to the file size i want to send. However, the question is - when do i check this? Currently, i am unable to call any cleanup code before exit. Regards, -vishal. On Aug 2

Re: How to check in CGI if client disconnected

2008-08-24 Thread Graham Dumpleton
On Aug 25, 4:26 pm, Vishal <[EMAIL PROTECTED]> wrote: > Hi, > >   Thanks for the replies. In my case, the cgi is sending a large file > to the client. In case the the stop button is pressed on the browser > to cancel the download, i want to do some cleanup action. It's all one- > way transfer in th

Re: How to check in CGI if client disconnected

2008-08-24 Thread Vishal
Hi, Thanks for the replies. In my case, the cgi is sending a large file to the client. In case the the stop button is pressed on the browser to cancel the download, i want to do some cleanup action. It's all one- way transfer in this case, so i can't expect the client to send anything to me. I r

Re: How to check in CGI if client disconnected

2008-08-24 Thread Gabriel Genellina
En Sun, 24 Aug 2008 17:51:36 -0300, Wojtek Walczak <[EMAIL PROTECTED]> escribió: > On Sun, 24 Aug 2008 17:21:52 -0300, Gabriel Genellina wrote: >>>I am writing a CGI to serve files to the caller. I was wondering if >>> there is any way to tell in my CGI if the client browser is still >>> conne

Re: How to check in CGI if client disconnected

2008-08-24 Thread Wojtek Walczak
On Sun, 24 Aug 2008 17:21:52 -0300, Gabriel Genellina wrote: >>I am writing a CGI to serve files to the caller. I was wondering if >> there is any way to tell in my CGI if the client browser is still >> connected. If it is not, i want to execute some special code before >> exiting. >> >>Is

Re: How to check in CGI if client disconnected

2008-08-24 Thread Gabriel Genellina
En Sun, 24 Aug 2008 14:25:03 -0300, Vishal <[EMAIL PROTECTED]> escribió: >I am writing a CGI to serve files to the caller. I was wondering if > there is any way to tell in my CGI if the client browser is still > connected. If it is not, i want to execute some special code before > exiting. > >

How to check in CGI if client disconnected

2008-08-24 Thread Vishal
Hi, I am writing a CGI to serve files to the caller. I was wondering if there is any way to tell in my CGI if the client browser is still connected. If it is not, i want to execute some special code before exiting. Is there any way to do this? Any help on this is appreciated :) Regards, -