"Fossies" - the Fresh Open Source Software Archive

Member "mod_perl-2.0.11/ModPerl-Registry/t/cgi-bin/runtime_error_plus_body.pl" (5 Oct 2019, 401 Bytes) of package /linux/www/apache_httpd_modules/mod_perl-2.0.11.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Perl source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "runtime_error_plus_body.pl": 2.0.8_vs_2.0.9.

    1 # please insert nothing before this line: -*- mode: cperl; cperl-indent-level: 4; cperl-continued-statement-offset: 4; indent-tabs-mode: nil -*-
    2 BEGIN {
    3     use Apache::TestUtil;
    4     t_server_log_error_is_expected();
    5 }
    6 
    7 # this script sends some body before the error happens,
    8 # so 200 OK is expected, followed by an error
    9 print "Content-type: text/plain\n\n";
   10 print "some body";
   11 print no_such_func();