bug in M2Crypto.urllib2 ..

Ng Pheng Siong ngps at post1.com
Sun Jul 30 11:19:41 EDT 2000


On Fri, Jul 28, 2000 at 09:28:53AM -0400, Michal Wallace wrote:
> I've been using the excellent M2Crypto package for its HTTPS
> support, and I've discovered a small bug that I'm trying to
> track down.

/tmp:$ cat py
#!/usr/local/bin/python

import M2Crypto.urllib2

url = 'https://secure.authorize.net/gateway/transact.dll'

page = M2Crypto.urllib2.urlopen(url)
print page.headers
print '-' * 50
print page.read()
print '-' * 50

/tmp:$ python py
Server: Microsoft-IIS/4.0
Date: Sun, 30 Jul 2000 15:18:26 GMT
Content-Type: text/html
Content-Length: 42
Content:

--------------------------------------------------
Invalid Merchant Login or Account Inactive
--------------------------------------------------
/tmp:$



-- 
Ng Pheng Siong <ngps at post1.com> * http://www.post1.com/home/ngps





More information about the Python-list mailing list