- or download this
#!/perl/bin/perl -wT
#test.cgi
...
print "<body>\n";
print "<h2>Hello, world!</h2>\n";
print "</body></html>\n";
- or download this
#!/perl/bin/perl -wT## printenv -- demo CGI program which just prints
+ its environmentBEGIN { $|=1; print "Content-type: text/html\n\
+n";
use CGI::Carp('fatalsToBrowser');
...
print "${var}=\"${val}\"\n";
}
close FILE;
- or download this
server logs, error;
at run time.
...
127.0.0.1 - - [04/Jan/2014:14:24:04 -0800] "GET /test.cgi HTTP/1.1" 40
+3 210
127.0.0.1 - - [04/Jan/2014:14:24:05 -0800] "GET /favicon.ico HTTP/1.1"
+ 200 1959
127.0.0.1 - - [04/Jan/2014:14:27:00 -0800] "GET /printenv.pl HTTP/1.1"
+ 403 213
- or download this
ALLUSERSPROFILE="C:\ProgramData"
APPDATA="C:\Users\user\AppData\Roaming"
...
USERNAME="user"
USERPROFILE="C:\Users\user"
WINDIR="C:\Windows"
- or download this
# This is the main Apache HTTP server configuration file. It contains
+ the
# configuration directives that give the server its instructions.
...
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>