Re: CGI output to null?



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
.



Relevant Pages

  • Re: automate tool to change column type?
    ... schema ahead of time. ... is the change such that you can do it with ALTER TABLE? ... but save and carefully review the script. ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ...
    (microsoft.public.sqlserver.tools)
  • Re: sql nvarchar(50)
    ... alter column CategoryName nvarchar ... Script out your table to make sure that the column size is actually ... >I have a table with a column CategoryName as nvarchar. ... Are nvarchars stuck!! ...
    (microsoft.public.sqlserver.programming)
  • Re: Rewritten play
    ... playwright is the soul of the theatre and the writer's script is at the heart of what we do. ... To alter it to fit one's own concept is to be a traitor to the theatre. ... Dave: So, you'd be willing to give up evil for Lisa? ... Johnny Johnson: Teaching English as a second language. ...
    (rec.arts.theatre.plays)
  • Re: ALTER IDENTITY setting...
    ... Enterprise Manager would do. ... I also would suggest you use EM and save the script. ... Pro SQL Server 2000 Database Design - ... > I just need to alter column with Identity. ...
    (microsoft.public.sqlserver.programming)
  • Re: Row size and DBCC SHOWCONTIG
    ... Andrew J. Kelly SQL MVP ... > Since I had to drop all dependent objects before issuing the ALTER COLUMN, ... >> Amy, ... >> Sorry but I didn't even see the script the first time. ...
    (microsoft.public.sqlserver.programming)