Calling a HTTPS url from a python script
Hello, I know this may not be a Zope specific question but I don't know where else to get my answers ... I am about to "simulate" a call to a payment gateway ... normally you create a HTML form with the action set to the gateway and the method set to POST .. but I want to make the call to the gateway from a python script. Alternavely a dtml method will work but ... I haven't got any clues on how to do this .. maybe there is something I have missed ... so are there anyone who can help me .. ?? TIA, Gitte Wange
There is some support for https and SSL inside Python 2.1.X (look at httplib and urllib/urllib2). Andreas ----- Original Message ----- From: "Gitte Wange" <gitte@mmmanager.org> To: <zope@zope.org> Sent: Tuesday, September 18, 2001 08:42 Subject: [Zope] Calling a HTTPS url from a python script
Hello,
I know this may not be a Zope specific question but I don't know where else to get my answers ...
I am about to "simulate" a call to a payment gateway ... normally you create a HTML form with the action set to the gateway and the method set to POST .. but I want to make the call to the gateway from a python script. Alternavely a dtml method will work but ...
I haven't got any clues on how to do this .. maybe there is something I have missed ... so are there anyone who can help me .. ??
TIA, Gitte Wange
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Also take a look at m2Crypto, search via google. ----- Original Message ----- From: "Gitte Wange" <gitte@mmmanager.org> To: <zope@zope.org> Sent: Tuesday, September 18, 2001 1:42 PM Subject: [Zope] Calling a HTTPS url from a python script
Hello,
I know this may not be a Zope specific question but I don't know where else to get my answers ...
I am about to "simulate" a call to a payment gateway ... normally you create a HTML form with the action set to the gateway and the method set to POST .. but I want to make the call to the gateway from a python script. Alternavely a dtml method will work but ...
I haven't got any clues on how to do this .. maybe there is something I have missed ... so are there anyone who can help me .. ??
TIA, Gitte Wange
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
On Tue, 18 Sep 2001, Gitte Wange wrote:
I am about to "simulate" a call to a payment gateway ... normally you create a HTML form with the action set to the gateway and the method set to POST .. but I want to make the call to the gateway from a python script. Alternavely a dtml method will work but ...
Python 2.1 has some SSL support in urllib and urllib2. You can access https urls with this but no authentication will take place. If you need server/client certificate checking the way to go is M2Crypto. Also look into stunnel for a possibly much simpler solution. http://www.pobox.org.sg/home/ngps/m2/ http://www.stunnel.org/ Stefan
participants (4)
-
Andreas Jung -
Gitte Wange -
Phil Harris -
Stefan H. Holek