CGI abort

Posted on 1999-12-03
Medium Priority
Last Modified: 2013-12-25
How to abort a cgi program immediately after the user presses the Stop button on their browser?  Will the browser send signal to indicate that the Stop button has been pressed and how can my cgi program detect this signal?
Question by:aimui

Expert Comment

ID: 2252282
no, AFAIK, the CGI will continue until it finishes whatever happens

(you can test this is you have a telnet account at your ISP by writing a bloody slow CGI, then pressing stop and runninng 'ps fax' at the telnet prompt - assuming UNIX/Linux server)

LVL 23

Expert Comment

ID: 2253615
Your CGI can not detect it. It happens on the client side. And the implementation of the Stop button varies with different Web browsers. Once a CGI program is started, Web servers do not send any notification to it.

Accepted Solution

helver earned 800 total points
ID: 2272465
The CGI program will notice that the connection has been dropped when it tries to write something, however.

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial will discuss fancy secure registration forms, with AJAX technology support. In this article I assume you already know HTML and some JS. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you mig…
Recently I have been answering a lot of questions like this in IT forums that I frequent. The question posed is usually something along the lines of "We have software X installed and need to uninstall it for reason Y" or some other variant of the sa…
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

593 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question