Changeset 10069 for main/waeup.aaue/trunk/src/waeup
- Timestamp:
- 9 Apr 2013, 15:30:27 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/etranzact/browser.py
r10032 r10069 18 18 from datetime import datetime 19 19 import httplib 20 import urllib 20 import urllib2 21 21 from xml.dom.minidom import parseString 22 22 import grok … … 129 129 #postdict['RESPONSE_URL'] = 'http://dummy' 130 130 postdict['CONFIRMATION_NO'] = confirmation_number 131 data = urllib .urlencode(postdict)131 data = urllib2.urlencode(postdict) 132 132 payment.conf_number = confirmation_number 133 133 try: 134 f = urllib.urlopen(url=QUERY_URL, data=data) 134 # eTranzact only accepts HTTP 1.1 requests. Therefore 135 # the urllib2 package is required here. 136 f = urllib2.urlopen(url=QUERY_URL, data=data) 135 137 success = f.read() 136 138 success = success.replace('\r\n','')
Note: See TracChangeset for help on using the changeset viewer.