



























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




























HTTP/1.
200
OK
Date:
Tue,
22
Nov^
2005
18:25:
GMT
Server:
Apache/2.0.
(Fedora)
Content-Length:91Connection:
close
Content-Type:
text/html;
charset=ISO-8859-
Welcome!Hello
World!
Content-type:
text/html
Welcome!Hello
World!
#!/usr/local/bin/perl#^ CGI02.cgi COMP519print
"Content-type:
text/html
\n\n
";
"
\n";
#^ I^
actually
printed
a^ full DTD
here.
#!/usr/local/bin/perl#^ CGI01.pl
COMP foreach
$env_key
(keys
%ENV
){
"The
value
of^
$env_key
is^
$ENV
{$env_key
}^ \n";
} exit (0);
"
\n";
#^ I^
actually
printed
a^ full DTD
here.
"About
Environment
\n";
"About
Environment
\n";
""; foreach
$env_key
(keys
%ENV
){
"The
value
of^
$env_key
is^
$ENV
{$env_key
}^ \n";
"
\n";
"\n
\n";
exit (0);
Content-type:
text/html
\n\n
text/plain
\n\n
Welcome IE!
IE! Are
you
a^ friend
of
Microsoft? WelcomeNET!You
are
a^ friend
of^
the
NET!
= "IN.html"; $out_users
=^ "OUT.html"; if(($remote_host
=~/$local_host$/)
&&^
($remote_address
=~/^($local_address)/)){
$html_document
=^ $in_users;
}^ else
{ $html_document
=^ $out_users;
"Content-type:
text/html
\n\n";
if^ (open
(HTML,
"<"
.$html_document))
{
while
()
{ print; } close
(HTML); }^ else
"Oops!
There
is^
a^ problem
with
the configuration
on^
this
system!
\n";
"Please inform
the
Webmaster
of^
the^
problem.
Thanks!
\n"; } exit(0);