Home > Archive > PERL CGI Beginners > December 2007 > CGI termination.
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| downloadondemand@gmail.com 2007-12-07, 3:56 am |
| Hi to all!
Please help me with the following (newbie):
When using CGI, how to tell the perl script to drop the connection
with client browser? I want to disconnect so the browser won't show
"loading state", but script must continue to run on server.
It is possible?
Thanks!
| |
| Gunnar Hjalmarsson 2007-12-07, 3:56 am |
| downloadondemand@gmail.com wrote:
> When using CGI, how to tell the perl script to drop the connection
> with client browser? I want to disconnect so the browser won't show
> "loading state", but script must continue to run on server.
print "Status: 204 No Content\n\n";
or, assuming you are using CGI.pm,
print header(-status => '204 No Content');
HTH
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
|
|
|
|
|