Re: CGI output to null?
- From: Gunnar Hjalmarsson <noreply@xxxxxxxxx>
- Date: Wed, 29 Jun 2005 14:26:58 +0200
Tintin wrote:
"Thom White" wrote:I use a (perl) CGI script to collect form data on our website, and email it to me. When it collects the data, it shows a thankyou.html page to the visitor. No problem.
Now, I want to alter this script so that it doesn't send anything back (it will be accessed from an HTML email), but if I strip out the:
print "Location: /thanks.html", "\n\n";
..line, I get an Internal Server Error.
Is there a way I can satisfy the script's need to reply, but send the information to Null, or whatever? Help?
Not a Perl question (apart from the use of 'print', which I'm sure you can handle).
print "Content-Type: text/plain\n\n";
That results in blank page, doesn't it?
I think it's this the OP is after:
print "Status: 204 No Content\n\n";
-- Gunnar Hjalmarsson Email: http://www.gunnar.cc/cgi-bin/contact.pl .
- Follow-Ups:
- Re: CGI output to null?
- From: Thom White
- Re: CGI output to null?
- References:
- CGI output to null?
- From: Thom White
- Re: CGI output to null?
- From: Tintin
- CGI output to null?
- Prev by Date: Re: PLEASE help me with this process
- Next by Date: Re: problem in passing parameters in function defined in perl module
- Previous by thread: Re: CGI output to null?
- Next by thread: Re: CGI output to null?
- Index(es):
Relevant Pages
|
|