On Thursday 27 March 2003 10:21 am, Dylan Reinhardt wrote:
On Thu, 2003-03-27 at 15:50, Sean Winstead wrote:
Then I receive the following error when posting to the page:
Error Type: Unauthorized Error Value: You are not allowed to access HTTP in this context
Ignore the issues with your script. Your *real* problem is that PayPal won't accept HTTP for this connection, you must use HTTPS.
Posting HTTPS from Zope is a bit more difficult, given that vanilla Python 2.1 doesn't support SSL. What you want is a library called M2Crypto. If you're on Windoze, you're in luck, b/c there are binaries available... but if you're on Linux, you've got some compiling to do. (You'll need SWIG set up before you can compile M2Crypto.)
See: http://www.zope.org/Members/dylanr/secure_post for hints on how to proceed once you've got M2Crypto in place.
Or use libcurl for this - there are python bindings available. -- Gitte Wange Technical Manager Email: gitte@mmmanager.org Web: http://www.mmmanager.org Tlf: +45 36 46 20 02 This breaks the cron job that calls self.Zoo.Diet.LargeAnimals.hippo.feed(), and all the hippos starve. Someone uses self.Zoo.Diet.buildings.visitor_reception.feed(), and ends up filling the reception with hippo food. -- Toby Dickenson, 20 Oct 2000 (Talking about URL Traversal),