Re: CGI termination.

[email protected] (Gunnar Hjalmarsson)
Newsgroups perl.beginners.cgi
Message-ID <[email protected]>
[email protected] 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.