Search notes:

Perl module Apache2::RequestUtil

#!/usr/bin/perl
use warnings;
use strict;

use Apache2::RequestUtil;
# use Apache2::RequestRec;

# $| = 1;
print "Content-type: text/html\r\n";
print "\r\n";

print "<h1>Apache2::RequestUtil->request()</h1>";

my $req = Apache2::RequestUtil->request;
my $str = $req->as_string;

$str =~ s/</\&lt;/;
$str =~ s/>/\&gt;/;
$str =~ s/&/\&amp;/;
print "<pre><code>$str</code></pre>";

print "<h1>\%ENV</h1>";
print "<table>";

for my $env (sort keys %{ENV}) {
  printf "<tr><td>%s</td><td>%s</td></tr>", $env, $ENV{$env};
}
print "</table>";
Github repository PerlModules, path: /Apache2/RequestUtil/script.pl

See also

Perl modules

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1741107566, '3.149.231.40', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/Perl/modules/Apache2/RequestUtil/index(65): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78