Re: CGI: want no response from server
From: Alan J. Flavell (flavell_at_ph.gla.ac.uk)
Date: 01/18/04
- Next message: gnari: "Re: Need help with a small Perl script to display red screen"
- Previous message: Anno Siegel: "Re: How to use select (select(2)) in Perl?"
- In reply to: Richard Trahan: "CGI: want no response from server"
- Next in thread: Tore Aursand: "Re: CGI: want no response from server"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Next message: gnari: "Re: Need help with a small Perl script to display red screen"
- Previous message: Anno Siegel: "Re: How to use select (select(2)) in Perl?"
- In reply to: Richard Trahan: "CGI: want no response from server"
- Next in thread: Tore Aursand: "Re: CGI: want no response from server"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|