Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

IIS 6 - Get works, post does not

by gwhite (Friar)
on Apr 28, 2008 at 14:42 UTC ( [id://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.

g_White

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.

      g_White

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://683308]
Approved by marto
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (7)
As of 2024-03-28 09:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found