Perl and CGI

 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me



Go Back   Tutorialized ForumsWeb Design & DevelopmentPerl and CGI

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Tutorialized Forums Sponsor:
  #1  
Old February 16th, 2010, 10:30 AM
Moonshine Moonshine is offline
Registered User
Tutorialized Newbie (0 - 499 posts)
 
Join Date: Feb 2010
Posts: 1 Moonshine User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 m 51 sec
Reputation Power: 0
I must be an Idiot... can't figure this out

This line is not bringing back any information using CGI… just a blank vlaue:

$remote_user = $ENV{'REMOTE_USER'};

Everything else is working in CGI. We moved the applications from one IIS web server to another IIS Web Server. Do we have to set something in IIS to allow theses values to be passed?

When I run the following I get blank results for REMOTE_USER (see below)

#!/usr/bin/perl

print "Content-type:text/html\n\n";
print <<EndOfHTML;
<html><head><title>Print Environment</title></head>
<body>
EndOfHTML

foreach $key (sort(keys %ENV)) {
print "$key = $ENV{$key}<br>\n";
}

print "</body></html>";

Results:

ALLUSERSPROFILE = C:\Documents and Settings\All Users
APP_POOL_ID = DefaultAppPool
AUTH_PASSWORD =
AUTH_TYPE =
AUTH_USER =
CERT_COOKIE =
CERT_FLAGS =
CERT_ISSUER =
CERT_SERIALNUMBER =
CERT_SUBJECT =
CLUSTERLOG = C:\WINDOWS\Cluster\cluster.log
COMMONPROGRAMFILES = C:\Program Files\Common Files
COMPUTERNAME = SMVCOWEB2
COMSPEC = C:\WINDOWS\system32\cmd.exe
CONTENT_LENGTH = 0
CONTENT_TYPE =
FP_NO_HOST_CHECK = NO
GATEWAY_INTERFACE = CGI/1.1
HTTPS = off
HTTPS_KEYSIZE =
HTTPS_SECRETKEYSIZE =
HTTPS_SERVER_ISSUER =
HTTPS_SERVER_SUBJECT =
HTTP_ACCEPT = */*
HTTP_ACCEPT_ENCODING = gzip, deflate
HTTP_ACCEPT_LANGUAGE = en-us
HTTP_CONNECTION = Keep-Alive
HTTP_HOST = localhost
HTTP_USER_AGENT = Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
INSTANCE_ID = 1
LOCAL_ADDR = 127.0.0.1
LOGON_USER =
NUMBER_OF_PROCESSORS = 1
OS = Windows_NT
PATH = C:\Perl\site\bin;C:\Perl\bin;C:\WINDOWS\system32;C :\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\syst em32\WindowsPowerShell\v1.0;D:\Program Files\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;D:\Prog ram Files\Microsoft SQL Server\100\Tools\Binn\;D:\Program Files\Microsoft SQL Server\100\DTS\Binn\
PATHEXT = .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;. PSC1
PATH_INFO = /cgi-bin/KevinTestCGIenb.pl
PATH_TRANSLATED = C:\Inetpub\cgi-bin\KevinTestCGIenb.pl
PROCESSOR_ARCHITECTURE = x86
PROCESSOR_IDENTIFIER = x86 Family 6 Model 26 Stepping 5, GenuineIntel
PROCESSOR_LEVEL = 6
PROCESSOR_REVISION = 1a05
PROGRAMFILES = C:\Program Files
QUERY_STRING =
REMOTE_ADDR = 127.0.0.1
REMOTE_HOST = 127.0.0.1
REMOTE_USER =
REQUEST_METHOD = GET
SCRIPT_NAME = /cgi-bin/KevinTestCGIenb.pl
SERVER_NAME = localhost
SERVER_PORT = 80
SERVER_PORT_SECURE = 0
SERVER_PROTOCOL = HTTP/1.1
SERVER_SOFTWARE = Microsoft-IIS/6.0
SYSTEMDRIVE = C:
SYSTEMROOT = C:\WINDOWS
TEMP = C:\WINDOWS\TEMP
TMP = C:\WINDOWS\TEMP
UNMAPPED_REMOTE_USER =
USERPROFILE = C:\Documents and Settings\Default User
WINDIR = C:\WINDOWS

Reply With Quote
Reply

Viewing: Tutorialized ForumsWeb Design & DevelopmentPerl and CGI > I must be an Idiot... can't figure this out


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap