JJ
Jonathan Crowther wrote:
Initially, things were looking good. However, I came across a stumbling block. In our environment, 3 special HTTP header key/values are set, and with CGI perl they appear in the @ENV :
HTTP_NT_ACCESS_AUTH_TYPE
HTTP_NT_ACCESS_USER
HTTP_NT_ACCESS_USER_DATAWith PerlIS, even when I explicitly refer to these ENV, they return blank (undef, I guess)
I even tried the CGI module's $query->http() function, and it also cannot get at this HTTP header information.I am starting to guess that IIS is stripping the HTTP header, and is not parsing all keys: only the ones it knows (i.e. standard headers, not general parsing). Is that true?
Is there any way to get IIS/ISAPI/PerlIS to provide custom headers through to the .plx script?
Cheers,
Jonathan-----Original Message-----
From: JJ [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 14, 2000 11:31 AM
To: Crowther, Jonathan [ORCH:9T03-M:EXCH]
Cc: '[EMAIL PROTECTED]'
Subject: Re: Beginning to try PerlISAs I understand it, you must "explicitly" reference an %ENV key to find it's value when using PerlIS. Unlike normal (non-ISAPI Perl), you cannot loop on all keys (an "impliciit" reference) and expect to see their values.
The loop I used to use is:
foreach $var (sort keys %ENV) {
print($var, "=", $ENV{$var});
}
But that only printed out those environment variables previously referenced explicitly. Try explicitly referencing the keys below to verify. For example,print("REMOTE_ADDR=", $ENV{"REMOTE_ADDR"});
I'm told this was done to increase execution speed of PerlIS. Go figure.
JJ
Jonathan Crowther wrote:I wanted to try speeding up my Perl without too much effort, and so started looking into PerlIS (ISAPI). I did a quick test of a very simple test Perl by renaming it from *.pl to *.plx.
Although the Perl executed correctly, it displayed the %ENV (as it should), but I found that the %ENV is much shorter than with regular CGI Perl. Specifically, the following were missing:
HTTP_CONNECTION
HTTP_COOKIE
HTTP_HOST
HTTP_USER_AGENT
PATH_INFO
PATH_TRANSLATED
REMOTE_ADDR
REMOTE_HOST
SCRIPT_NAME
SERVER_NAME
SERVER_PORT
SERVER_PORT_SECURE
My other scripts use most of these $ENV{} values, so I don't see how PerlIS will ever work for me, unless there some alternative ways to get to such information.Can anyone confirm or deny this observation, or have suggestions?
Cheers,
Jonathan
begin:vcard n:Jay;Jeffrey tel;cell:1-707-235-4949 tel;fax:1-707-782-1141 tel;work:1-707-782-1163 x-mozilla-html:TRUE url:http://www.geovector.com org:GeoVector Corporation adr:;;601 Minnesota Street #212;San Francisco;California;94107;USA version:2.1 email;internet:[EMAIL PROTECTED] title:Vice President, Product Development fn:Jeffrey Alan Jay (JJ) end:vcard
