a_mere_kat has asked for the wisdom of the Perl Monks concerning the following question:

I am having real problems with Perl cgi. I was unable to create a script in perl containing radio buttons. So I said sod it and created an html to pass parameters to my script.....not the sexiest but there you go. However, I keep getting the following error message:
The requested method POST is not allowed for the URL /website/cgi/sea +rch.cgi. Apache/1.3.27 Server at _default_ Port 80
I have absolutly open privilages (rwx) for the form, the script its passing the parameters to, and all files surrounding it for a hundred mile radius. The interpreter loves the perl........however its being an orenary s.o.b. Help me Obi wan Kenobi you are my only hope.......that or a job at Mcdonalds......

Replies are listed 'Best First'.
Re: Perl CGI
by jasonk (Parson) on Mar 24, 2003 at 15:00 UTC

    It isn't a perl problem, Apache is configured not to allow post to that url. Off the top of my head I'm going to guess you have a .htaccess file protecting your website so nobody can see it while you are developing it. And in that .htaccess file you probably have a <Limit GET> directive, which restricts who can GET urls, and since you don't have POST listed in there, nobody is allowed to post.


    We're not surrounded, we're in a target-rich environment!
      From what I gathered, "LIMIT GET" only reduces your options for "GET"... it does not forbid you to use any other method. For example:
      <Limit GET> deny from all </Limit>
      will forbid anybody GET access to that directory; however, it says nothing about HEAD, POST, or whatever...