Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

IIS 6 - Get works, post does not

by gwhite (Friar)
on Apr 28, 2008 at 14:42 UTC ( #683308=perlquestion: print w/replies, xml ) Need Help??
gwhite has asked for the wisdom of the Perl Monks concerning the following question:

I have an extensive perl CGI application that runs on several platforms. One of my clients just upgraded to Microsoft IIS 6. I am using activestate Perl on the box, I can get to my registration page (a perl script), then when I enter the username and password and click submit (which posts to the same Perl script), I get a 403 error. In the windows server error log, it shows a 200 code for the original get, and a 403 for the subsequent post. I have checked the allowed verbs and they are set to get, head, post. If I change from using the Perl.exe to PerlIS.dll, I do not get a 403 error, I get a 200 message for a redirect to the member landing page (another perl script), but what shows in the browser (IE or Firefox) is the original login script page. So, Perl works if only doing a Get(which is not an option due to some extensive forms that have to be processed and I don't want usernames and passwords showing on the ends of URLS), I have problems with Posts, I have problems with Redirects (not going into detail on that yet as I hope whatever solves the post issue solves the redirect as well).

Any suggestions are appreciated, except those involving the client switch servers or OS as it is totally out of my hands.


Replies are listed 'Best First'.
Re: IIS 6 - Get works, post does not
by AK108 (Friar) on Apr 28, 2008 at 15:35 UTC
    How are you reading the POST content in? Are you using CGI, another module, or something coded by hand?

      CGI - but I am getting a 403 error before the data ever gets posted to the form.

      I enter http://mysite/cgi-bin/register.cgi, it shows the input form with pass/username fields and posts data back to /cgi-bin/register.cgi. When I click submit, it gives me a 403 page.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://683308]
Approved by marto
[Corion]: Yeah, but the hope is that when I just delete it I won't receive any more mail from them
[Corion]: ... a faint hope, I know
[Discipulus]: ah ah you are still so optimist, Corion ? ;=)
[Discipulus]: here we are a bit late: i'll inject a ransomware to crypt everything and be compliant

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (7)
As of 2018-05-25 07:34 GMT
Find Nodes?
    Voting Booth?