To complete merlyns response the WebServer makes available cretain information sent by the browser in the %ENV hash which is probably what you are getting at (I think) This is not sent in the form of TAG /TAG as noted. You can see what is available by installing this script on your web server then pointing your browser at it. The imformation sent depends to an extent on which version of the browser is in use and user settings.
#!/usr/bin/perl
# printenv.pl
print "Content-type: text/html\n\n";
print "$_\t$ENV{$_}\n" for keys %ENV;
__DATA__
You will see something like this:
COMSPEC="C:\WINNT\system32\cmd.exe"
DOCUMENT_ROOT="C:/Program Files/Apache Group/Apache2/htdocs"
GATEWAY_INTERFACE="CGI/1.1"
HTTP_ACCEPT="image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, appl
+ication/vnd.ms-powerpoint, application/vnd.ms-excel, application/mswo
+rd, application/x-shockwave-flash, */*"
HTTP_ACCEPT_ENCODING="gzip, deflate"
HTTP_ACCEPT_LANGUAGE="en-au"
HTTP_CONNECTION="Keep-Alive"
HTTP_HOST="localhost"
HTTP_USER_AGENT="Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .N
+ET CLR 1.0.3705)"
PATH="D:\Perl\bin\;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem"
PATHEXT=".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH"
QUERY_STRING=""
REMOTE_ADDR="127.0.0.1"
REMOTE_PORT="3264"
REQUEST_METHOD="GET"
REQUEST_URI="/cgi-bin/printenv.pl"
SCRIPT_FILENAME="C:/Program Files/Apache Group/Apache2/cgi-bin/printen
+v.pl"
SCRIPT_NAME="/cgi-bin/printenv.pl"
SERVER_ADDR="127.0.0.1"
SERVER_ADMIN="admin@hbt.tassie.net.au"
SERVER_NAME="localhost"
SERVER_PORT="80"
SERVER_PROTOCOL="HTTP/1.1"
SERVER_SIGNATURE="<address>Apache/2.0.40 Server at localhost Port 80</
+address>\n"
SERVER_SOFTWARE="Apache/2.0.40 (Win32)"
SYSTEMROOT="C:\WINNT"
WINDIR="C:\WINNT"
cheers
tachyon
s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|