Sign in:
Username:
Password:  
»Forgot your password?

Home | Forum | How to Protect Your Web Form | How to Protect Your Email | Sign Up

Insure yourself from spam! The Anti Spam Insurance Company - ProtectWebForm!

Forum - Method Not Allowed Error

PostMessage
Virgil Wong
2006-10-03 10:33:28
Thanks to ProtectWebForm.com for this amazing and important service.
Unfortunately, I'm getting a "Method Not Allowed" error when I hit
submit on the CAPTCHA page.

I created a test version of my contact form:
http://www.rythospital.com/contact/index2.shtml

The CAPTCHA works great and I receive the form-mail, but the user is
taken to an error page:
http://2149.gate.protectwebform.com/pwfgateway/out/09439523590a170ef90f2b8964b068ff

Method Not Allowed
The requested method POST is not allowed for the URL
/contact/thankyou.shtml.

Do I need to modify my redirect tag?
<input type=hidden name=redirect
value="http://www.rythospital.com/contact/thankyou.shtml">

Thanks!
Virgil
scomart
2006-10-29 07:05:30
I'm having this same problem with a redirect page and would like to
know the solution if there is one.
menyeart
2006-12-07 18:33:27
I am getting the same result. Is this a moderated forum with tech
support?
Orlando
2006-12-12 02:15:15
I am having the very same problem when I try to redirect the user to a
thank you page on my site: "The requested method POST is not allowed
for the URL" followed by the URL of the thank you page itself. Does
anyone have a solution for this ?
ShelaghG
2006-12-21 07:01:00
I'm having this problem too :( I had really hoped that this was the
solution to my spam but I guess I'll just have to take my contact form
down.
smoemeth
2007-01-12 21:10:41
Adding my voice to the chorus here ... I will be unable to use this
service on my site until this problem is solved. Which is too bad,
because I really thought this was going to be a relatively quick and
easy solution to the spam problems we've been having. :(
a7n9
2007-01-26 11:25:22
I'm having the same error when I redirect the users after hitting the
submit button to a thank you page. "Method Not Allowed
The requested method POST is not allowed for the URL". Help please! My
form is here: http://www.nandeshwar.info/slang/
oleg
2007-01-26 15:48:41
I guess your cgi script is trying to redirect to "thankyou.htm" page.
And our script is trying to resend the POST request to this page too.
(this issue is discussed here:
http://curl.haxx.se/mail/curlphp-2001-03/0040.html)
this is some approaching to RFC2616.

The only soultion I see for you is to change the cgi script and to
output html code which will use META html redirect.

Hope this helps.
a7n9
2007-01-29 07:52:28
Thanks oleg, got it working. Changed the CGI script-rather than having
the "Location" I let the CGI to generate HTML and added META Refresh
to redirect to the thankyou page. Here's that part of the script if
anyone in the future needs it:

### Print out a thank you statement:

### if you would rather jump to a thank you webpage, remove # on next
line.
#print "Location: Your website URL\n\n";

print "Content-type: text/html\n\n";
print qq~

<html>
<head>
<meta HTTP-EQUIV="REFRESH" content="0; url=thank you url">
<title>Thank You</title></head>
<body>
</body>
</html>

~;
ilora
2007-02-04 13:55:18
I have two websites with email forms. Protectwebform works fine on
one, and goes to my thank-you message as requested. I am using the
identical form.cgi for the other, substituting the url and other info
for that website. and setting up the protectwebmail installation as
specified in the instructions. Permissions are set properly both for
the directory and the file. I am getting repeated method not allowed
errors, tried a79g's changes to the cgi script, all I got was 500
internal server errors, reverted to my old (wisely saved) form.cgi,
and now it's doing 500 internal server errors! ???
geoffholt
2007-02-16 21:49:56
First, thanks for the great service. Works great on one of my sites,
but I'm getting this same error on another. I don't think my ISP gives
me access to edit the script. The directory is invisible via ftp. Is
there another way for me to fix this without editing the script?
oleg
2007-02-23 14:13:39
If you have thank you page with .html or .htm extension, you could try
to rename it to .php, this could help you I guess. Cause php file can
accept POST data and is still producing html if there are no php code
in it.
geoffholt
2007-02-25 16:43:40
Thanks oleg! That seems to be working.
anndonnelly
2007-05-27 16:25:20
Changing the redirect to .php worked for one of my sites, but not
another.

Any other ideas? I don't have access to the formmail script, unless I
install my own, which I could do, but I was hoping for a quick fix.
Walter Hoye
2007-05-31 05:51:44
Thanks a7n9! Your post worked for me!
alumnagirl
2007-06-12 20:51:27
I've tested it on php and it still does not work.

http://shorty-stories.com/test.php

Thanks






Post Reply:

You must be logged in to reply.
Post message
Name: 
Email: 
Url: 




Registered users: 20257

Forms protected: 48458

Further Reading & Anti Spam Resources:

Directory
Search our site for:
 
Web www.protectwebform.com

Get Thunderbird!

    ©Copyright 2006 ProtectWebForm.com. All rights reserved. Read our Privacy Policy

Page copy protected against web site content infringement by Copyscape