For Programmers: Free Programming Magazines  


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]

 

Author CGI termination.
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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com