Hi,
I have a python script that used to work when python was compiled with openssl-0.9.6a, but when I upgraded to openssl-0.9.7d, it no longer works.
The python version is Python 2.3.3
the script is very simple. It does a HTTPS to a payment gateway with several parameters, and gets a simple HTML response. A test script to demonstrate the problem is below:
================================================ import httplib
path = "/cmaonline.nsf/ePayForm?OpenForm"
body = '''Desc=&Bank=National&email=&creditcardholdername=fgfgg&creditcardtype=VISA&creditcardnumber=4557013000314262&ReturnHTTP=%2A&SendeMail=No&UID=0407151706104&MultiBank=No&FinalPrice=35.00&MerchantID=36&CompanyName=Bizar+Software&Mode=Test&Platform=PlainText&__Click=0&ABN=ABN+xx+xxx+xxx+xxx&Returnemail=&creditcardexpiryyear=2004&CVV=&Name=fgfgg&readers=MEL0036&creditcardexpirymonth=7&Principal='''
h = httplib.HTTPSConnection("merchant.ematters.com.au", 443) h.debuglevel=1 h.request('POST', path, body) resp = h.getresponse() f = resp.fp resp = resp.read() f.close() h.close() print resp ================================================
When python is compiled with 0.9.6a I get a nice HTML response:
reply: 'HTTP/1.1 200 OK\r\n' header: Server: Lotus-Domino/0 header: Date: Tue, 20 Jul 2004 04:07:05 GMT header: Connection: close header: Content-Type: text/html header: Content-Length: 204 &payment_number==end <br>&payment_reference=0407151706104=end <br>&bank_reference==end <br>&summary_code=708=end <br>&response_code=708=end <br>&response_text=DUPLICATE TRANSACTION=end <br>&rcode=708=end
yet when compiled with openssl 0.9.7d, I get:
reply: 'HTTP/1.1 500 Internal Server Error\r\n' header: Server: Lotus-Domino/0 header: Date: Tue, 20 Jul 2004 05:18:16 GMT header: Connection: close header: Content-Type: text/html; charset=US-ASCII header: Content-Length: 144 header: Expires: Tue, 01 Jan 1980 06:00:00 GMT header: Cache-control: no-cache <HTML> <HEAD> <TITLE>Error</TITLE></HEAD> <BODY TEXT="000000"> <H1>Error 500</H1>HTTP Web Server: Invalid POST Request Exception</BODY> </HTML>
I searched the list archives and FAQs for problems relating to posting to Lotus Domino servers, but couldn't find anything. I am not sure what to do next, or where to look with regards to finding out what the problem is.
terry
______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]