lxuser: Ausgabe von %ENV

Beitrag lesen

#!/usr/bin/perl

print "Content-Type: text/html; charset=UTF-8\n\n";

print "<pre>\n";
foreach(keys(%ENV)) {
  print "ENV{$}:\t$ENV{$}\n";
}


>   
>   
  
Hier die Ausgaben... von char Kodierung seh ich da allerdings nichts.  
  
ENV{SCRIPT\_NAME}:	/cgi-bin/test.pl  
ENV{SERVER\_NAME}:	XXXXX.de  
ENV{SERVER\_ADMIN}:	webmaster@XXXXX.de  
ENV{HTTP\_ACCEPT\_ENCODING}:	gzip, deflate  
ENV{HTTP\_CONNECTION}:	keep-alive  
ENV{REQUEST\_METHOD}:	GET  
ENV{HTTP\_ACCEPT}:	text/html,application/xhtml+xml,application/xml;q=0.9,\*/\*;q=0.8  
ENV{SCRIPT\_FILENAME}:	/home/XXXXX/public\_html/cgi-bin/test.pl  
ENV{CONTEXT\_PREFIX}:	/cgi-bin/  
ENV{REQUEST\_SCHEME}:	http  
ENV{SERVER\_SOFTWARE}:	Apache  
ENV{QUERY\_STRING}:	  
ENV{REMOTE\_PORT}:	45342  
ENV{HTTP\_USER\_AGENT}:	Mozilla/5.0 (X11; Linux x86\_64; rv:33.0) Gecko/20100101 Firefox/33.0  
ENV{SERVER\_PORT}:	80  
ENV{SERVER\_SIGNATURE}:	  
ENV{HTTP\_ACCEPT\_LANGUAGE}:	en-ca  
ENV{REMOTE\_ADDR}:	5.147.206.238  
ENV{CONTEXT\_DOCUMENT\_ROOT}:	/home/XXXXX/public\_html/cgi-bin/  
ENV{SERVER\_PROTOCOL}:	HTTP/1.1  
ENV{PATH}:	/usr/local/bin:/usr/bin:/bin  
ENV{REQUEST\_URI}:	/cgi-bin/test.pl  
ENV{GATEWAY\_INTERFACE}:	CGI/1.1  
ENV{SERVER\_ADDR}:	198.30.107.43  
ENV{DOCUMENT\_ROOT}:	/home/XXXXX/public\_html  
ENV{HTTP\_HOST}:	XXXXX.de  
ENV{UNIQUE\_ID}:	VHsL4MMeaysADlSBdrUAAABP