Here is the perl.exe problem. This seems to be more related to OTRS structure than to the IIS server ... any ideas would be greatly appreciated.

Ciao,

Michelle

-------- Original Message --------
Subject: Redirect after POST problem with perl.exe
Date: Tue, 01 Mar 2005 10:25:27 +1100
From: Michelle Davis <michelle@websitesatwork.com.au>
To: perl-win32-users@listserv.ActiveState.com


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?

Ciao,

Michelle Davis
--

Websites at Work - Websites created to put you in control.
http://www.websitesatwork.com.au/websiteneeds.html
E: mailto:info@websitesatwork.com.au P: +61 (0)2 6161 9376
F: +61 (0)2 8569 1505 M: +61 (0)412 819 376

--

Websites at Work - Websites created to put you in control.
http://www.websitesatwork.com.au/websiteneeds.html
E: mailto:info@websitesatwork.com.au P: +61 (0)2 6161 9376
F: +61 (0)2 8569 1505 M: +61 (0)412 819 376

--

Websites at Work - Websites created to put you in control.
http://www.websitesatwork.com.au/websiteneeds.html
E: mailto:info@websitesatwork.com.au P: +61 (0)2 6161 9376
F: +61 (0)2 8569 1505 M: +61 (0)412 819 376