Home  |  Linux  | Mysql  | PHP  | XML
From:Gunnar Hjalmarsson Date:Fri Dec  7 02:00:55 2007
Subject:Re: CGI termination.
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
Navigate in group perl.beginners.cgi at sever nntp.perl.org
Previous Next




  
© No Copyright
You are free to use Anything
Site Maintained by PHP Developer
Powered By PHP Consultants