Re: CGI: want no response from server

From: Alan J. Flavell (flavell_at_ph.gla.ac.uk)
Date: 01/18/04


Date: Sun, 18 Jan 2004 11:37:52 +0000

On Sun, 18 Jan 2004, Richard Trahan wrote:

> I want to do something simple: nothing.

Not quite as simple as it looks; at least, it took browser
implementers a considerable time to get it right per the
specification, but AFAIK they're OK now.

> I have a form. When the user clicks Submit, I want the script to be
> invoked in the usual manner, but I want no change at all in the client
> page (the script does some background task on the server).

Not a Perl issue, and you ought to raise this kind of question on
a group where WWW CGI questions are on-topic, just as it hints in
perlfaq9. But in brief the answer is Status: 204 No response

> If I don't write anything to STDOUT from the script, I get error
> messages from the server.

Correct. All CGI scripts must return some kind of appropriate
response to STDOUT, or else the server will return an error report to
the client (typically "premature end of script headers").

> I'm not sure what's happening here.

perlfaq9 has pointers to the CGI specification, tutorials, and an
appropriate Usenet group. HTH.



Relevant Pages

  • Re: How do I insert a cgi script into Publisher page?
    ... If your ISP supports cgi and has a form handling program then a form created ... You must tell the server what e mail address you want the form results sent ... any where else you so desire or an auto redirect script with a delay. ... link to your host and specifically where on the host website it gives you ...
    (microsoft.public.publisher.webdesign)
  • Re: How do I insert a cgi script into Publisher page?
    ... If your ISP supports cgi and has a form handling program then a form created in publisher will function using FTP upload rather than front page server extensions to upload the pages. ... The thank you page may have a link back to the page where you came from or any where else you so desire or an auto redirect script with a delay. ... Also provide us a link to your host and specifically where on the host website it gives you the instructions for using the forms program in the cgi folder. ...
    (microsoft.public.publisher.webdesign)
  • Re: Apache: limiting the execution place
    ... They want it so users can't use FTP, shell, or a CGI or PHP script to view, ... other users via shell, FTP, web server processes (such as PHP or CGI ...
    (Security-Basics)
  • Re: Simple script execution problems (newbie)
    ... my $query= new CGI; ... Internal Server Error 500 and the error log reports "Premature end of script ... Permission denied", "Premature end of script headers: ...
    (comp.lang.perl.misc)
  • Re: middleware, sort of (same question, different posting software)
    ... >I have a server side script that takes a user's input in a form, ... and sends it on to an external server. ... So I can't get the response back in the same script ...
    (comp.lang.perl)