Loading ...
Sorry, an error occurred while loading the content.

5029Re: [soaplite] access to raw CGI post data on server

Expand Messages
  • Byrne Reese
    Nov 25, 2005
    • 0 Attachment
      Check out:

      http://www.majordojo.com/archives/2005/03/unlocking_065_d.php

      And

      http://www.majordojo.com/archives/2004/10/intercepting_th.php

      > To debug a rare server problem with failing CGIs, we
      > have added a trace function for faults in the service cgi, like this:
      >
      > use SOAP::Lite +trace => [ fault => \&log_faults ];
      >
      > sub log_faults {
      > open LOGFILE,">/tmp/fault.log";
      > print LOGFILE join "\n", @_;
      > foreach (keys %ENV) {
      > print LOGFILE "ENV{$_} = $ENV{$_}\n";
      > }
      > close LOGFILE;
      > }
      >
      >
      > This logs the soap fault message and all HTTP environment variables.
      >
      > We would like to see the original POST data of the cgi request
      > (the incoming xml file).
      >
      > How can I access this at this stage, to print it into the fault-logfile?
      >
      > I would be happy to get a reply despite thanksgiving weekend (we don't
      > have this holiday in europe)
      >
      >
      >
      >
      >
      > YAHOO! GROUPS LINKS
      > Visit your group "soaplite" on the web.
      > To unsubscribe from this group, send an email to:
      > soaplite-unsubscribe@yahoogroups.com
      > Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
      >


      ^byrne
    • Show all 4 messages in this topic