Ignore:
Timestamp:
9 Apr 2013, 15:30:27 (12 years ago)
Author:
Henrik Bettermann
Message:

eTranzact only accepts HTTP 1.1 requests. Therefore
the urllib2 package is required here.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/etranzact/browser.py

    r10032 r10069  
    1818from datetime import datetime
    1919import httplib
    20 import urllib
     20import urllib2
    2121from xml.dom.minidom import parseString
    2222import grok
     
    129129    #postdict['RESPONSE_URL'] = 'http://dummy'
    130130    postdict['CONFIRMATION_NO'] = confirmation_number
    131     data = urllib.urlencode(postdict)
     131    data = urllib2.urlencode(postdict)
    132132    payment.conf_number = confirmation_number
    133133    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)
    135137        success = f.read()
    136138        success = success.replace('\r\n','')
Note: See TracChangeset for help on using the changeset viewer.