File Acknowledgement
am 19.08.2003 20:06:43 von ahmed.nauman
Hi All,
How can we know at server side in apache that a GET or PUT request has been
received and it was failed or successfull ? Can we get somehow the response
code so that some script and/or tool at Server side can delete/archive the
file which have been retrieved by the client in some specific folders?. Is
there any industry standard for such file acknowledgement.
Regards,
Nauman
____________________________________________________________ __________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List modssl-users@modssl.org
Automated List Manager majordomo@modssl.org
Re: File Acknowledgement
am 20.08.2003 04:10:56 von Cliff Woolley
On Tue, 19 Aug 2003, Nauman, Ahmed [IT] wrote:
> How can we know at server side in apache that a GET or PUT request has
> been received and it was failed or successfull ? Can we get somehow the
> response code so that some script and/or tool at Server side can
> delete/archive the file which have been retrieved by the client in some
> specific folders?. Is there any industry standard for such file
> acknowledgement.
If it were me, I'd just write a CGI script to do this... as for how you
know for certain that the client received the entire response, that's a
bit tricky. The http response code (even if it's 200 OK) doesn't tell you
what happened on the client end. The client never sends an
acknowledgement response code. Apache internally knows whether it
finished sending or not, but it's hard to get at that information except
by directly accessing the internal structures from a module. Perhaps the
easiest way is to have the client request some other URL after it gets the
full document (javascript redirect?), and have that second URL be your
acknowledgement and trigger to delete the file.
--Cliff
____________________________________________________________ __________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List modssl-users@modssl.org
Automated List Manager majordomo@modssl.org