We are having
a stability problem with perlis.dll on IIS5 (see my other post) - as a
possible solution I tried to use perl.exe to run our application.
I put the mapping in as c:\perl\bin\perl.exe %s %s for .pl and ran my
scripts.
On the whole they work well except for one problem. The application
(which is OTRS for anyone interested) runs from an index.pl form which
collects a bunch of information in a form, submits the form to itself
and then redirects to itself with a set of new parameters. Under
perlis.dll this works perfectly - but under perl.exe I get an endless
loop which appears to be caused by the POST information being sent
along with the redirect.
So if I have field called "Login" - on the form POST the application
detects this, creates the user session and then redirects to itself
with new parameters Session=.... but the Login field seems to be sent
as well so the redirect gets caught on the "Login" field detection
routines and creates a new user session, redirects to itself and so on
forever.
I guess I could rewrite all the code to handle this by changing the if
tests or order of parameter detection - but OTRS is a big application
and this method of redirection is common right through all the scripts
- also if we do this we make it very difficult to upgrade to new
versions.
Is there something in the setup of activeperl or IIS which I might have
wrong or something I can do when redirecting (or an alternative to
Redirect) that will avoid this problem?