1

所以我可以使用 Fiddler 愉快地调用我的 IPN 处理页面(一个 aspx 页面)来发布一个相当准确的 IPN 应该发送的版本,并且它工作正常。但是,一旦我使用 IPN 测试工具或尝试“真实”交易,它就会抛出 405:

2012-01-25 18:46:55 193.128.120.227 POST /paypal_notify.aspx - 80 - 173.0.82.126 - 302 0 0
2012-01-25 18:46:55 193.128.120.227 POST /403_error.htm - 80 - 173.0.82.126 - 405 0 1

我就是想不通。从 IPN 调用 ASP 页面可以正常工作,但 ASPX 和 ASHX 都抛出 405。然而,自己发布到页面并不是问题。

如果有人有任何想法可能导致这种情况,我将不胜感激!

4

1 回答 1

2

Well, you first do a redirect to an error page. Paypal tries a POST to /403_error.htm and since that should probably be a GET you get the 405. Something is probably wrong in your paypal_notify.aspx in the first place.

403 means forbidden, so do you have any security scheme that throws the 403?

You might want to post the code you use in paypal_notify.aspx so we can figure out what is causing the 302 to the error page for 403.

于 2012-01-25T21:28:26.490 回答