[boulder.pm] environment vars from a cgi script

Myke Komarnitsky myke at komar.org
Mon Apr 22 18:46:03 CDT 2002


This is more apache/unix than perl, but I'm doing it with a perl script.

I have a small form that takes an email address, and has two boxes that can 
be checked.  It then sends an email to me, including everything in the %in 
hash (where I put the input vars), @ARGV, and %ENV.

my question: The %ENV hash has a CONTENT_LENGTH variable.... what I really 
want to see is the entire, unedited, untouched, content string passed to 
the script..... anyone know how to do this?

thanks,
Myke

here's the existing output
----------
announce ==> yes
discuss ==> yes
email ==> the_input_email at earthlink.net
----------

here's @ARGV
----------
----------

here's the %ENV vars
----------
CONTENT_LENGTH ==> 57
CONTENT_TYPE ==> application/x-www-form-urlencoded
DOCUMENT_ROOT ==> /home/docs/climbing/boulder/live/
GATEWAY_INTERFACE ==> CGI/1.1
HTTP_ACCEPT ==> image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, 
application/vnd.ms-powerpoint, application/vnd.ms-excel, 
application/msword, application/pdf, */*
HTTP_ACCEPT_ENCODING ==> gzip, deflate
HTTP_ACCEPT_LANGUAGE ==> en-us
HTTP_CACHE_CONTROL ==> no-cache
HTTP_CONNECTION ==> Keep-Alive
HTTP_HOST ==> www.climbingboulder.com
HTTP_REFERER ==> http://www.climbingboulder.com/community/email.html
HTTP_USER_AGENT ==> Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)
PATH ==> /sbin:/bin:/usr/sbin:/usr/bin
QUERY_STRING ==>
REMOTE_ADDR ==> 165.127.14.155
REMOTE_PORT ==> 1560
REQUEST_METHOD ==> POST
REQUEST_URI ==> /cgi-bin/emaillist.pl
SCRIPT_FILENAME ==> /home/docs/climbing/cgi-bin/emaillist.pl
SCRIPT_NAME ==> /cgi-bin/emaillist.pl
SERVER_ADDR ==> 199.117.52.1
SERVER_ADMIN ==> myke at komar.org
SERVER_NAME ==> www.climbingboulder.com
SERVER_PORT ==> 80
SERVER_PROTOCOL ==> HTTP/1.1
SERVER_SIGNATURE ==> <ADDRESS>Apache/1.3.20 Server at 
www.climbingboulder.com Port 80</ADDRESS>
SERVER_SOFTWARE ==> Apache/1.3.20 (Unix) mod_perl/1.26 PHP/4.0.6 
AuthMySQL/2.20 mod_ssl/2.8.4 OpenSSL/0.9.6

Michael Komarnitsky      Komar Consulting Group
303.818.3718             http://www.komar.biz
http://climbingboulder.com
http://myke.komar.org
-




More information about the Boulder-pm mailing list