405 Method Not Allowed


rhendrix9
 Share

Recommended Posts

I am trying to implement a paypal shopping cart on one of my sites. When processing a return from paypal I get a "405 Method Not Allowed" http error.

I have spent a couple of days with the paypal develpement team and everything is in the right place and the only thing not in their control is their web server.

here is their latest response;

"405 method not allowed" this has to do with the method (POST) in this case and may have to do with your server. Here is an explanation of the error.

Do you have any ideas?

Link to comment
Share on other sites

  • 2 weeks later...

I had this same issue a few days ago. It has to do with litespeed - They (litespeed) basically said that my CGI scripts were being run as static files (ie there was no AddHandler set to process .cgi files as CGI). I couldn't quite buy that so I just rewrote my scripts using php.

I noted that if I changed post to get it eliminated the problem but that wouldn't work in my situation.

Edited by pawpawah
Link to comment
Share on other sites

The problem in this case was the user had a .html file accepting POST requests which is not possible. Depending on the ISP and browser it would produce an error.

As for your issue CGI is handled fine so that does not make a whole lot of sense that it did not work.

Link to comment
Share on other sites

That's why I said I couldn't buy the answer. I had a form posting to a cgi script and it was throwing that error, yet other scripts were working fine. Figured it was easier to rewrite than track down the issue.

Now that I think about it it may have been that the script was producing the html page with results after processing. Not sure but it was easier to just rewrite in my case.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share