Results 1 to 2 of 2
  1. #1

    Passing POST values ro Error 500 Handler?

    I've got a PERL script that handles all my Error 500 Internal Errors by e-mailing me all the HTTP Environment variables.

    What I also want to include is all the POST/GET variable values when the error occurred. But because it is a redirect the values are all empty. My script looks like this:


    use CGI qw(:all);


    foreach $key (sort keys(%ENV)) {
    print SENDMAIL "$key = $ENV{$key}\n";


    foreach my $p (param()) {
    print SENDMAIL "$p=".param($p)."\n";

    I'm thinking this might be more of an Apache config (.htaccess) issue than a PERL issue but just throwing it out there. My .htaccess says:

    ErrorDocument 500 /cgi-bin/error500.cgi

    I'm wondering if the only solution is to use some sort of syntax to append all the variable values onto the end?

    Or, maybe it is just not possible?

  2. #2
    Join Date
    May 2001


    I have no issue doing the above. When I do a GET and pass some variables, I can see the them in the REDIRECT_QUERY_STRING environment variable.

    Try printing out the content in your error500.cgi

Similar Threads

  1. Passing $_POST values in foreach?
    By lexington in forum Programming Discussion
    Replies: 7
    Last Post: 06-01-2008, 09:24 PM
  2. Passing Multiple values into a simple SQL function?
    By Rotfil in forum Web Design and Content
    Replies: 0
    Last Post: 05-30-2008, 06:22 AM
  3. MySQL Error : Got error 28 from table handler
    By UnrealSilence in forum Hosting Security and Technology
    Replies: 3
    Last Post: 01-29-2006, 07:38 PM
  4. Passing values in a URL to an iframe
    By NetHosted-Andrew in forum Programming Discussion
    Replies: 8
    Last Post: 12-05-2005, 05:02 PM
  5. Passing State and Country values to 2checkout
    By mno in forum Programming Discussion
    Replies: 3
    Last Post: 05-08-2004, 11:12 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts