bug in M2Crypto.urllib2 ..
Michal Wallace
sabren at manifestation.com
Sun Jul 30 11:51:53 EDT 2000
On Sun, 30 Jul 2000, Ng Pheng Siong wrote:
> /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:$
Very strange. I still get:
Server: Microsoft-IIS/4.0
Date: Sun, 30 Jul 2000 15:49:23 GMT
Content-Type: text/html
Content-Length: 42
Content:
--------------------------------------------------
None
--------------------------------------------------
... But I found that if I just use M2Crypto.httpslib, it works fine. I
spent quite a bit of time in the debugger and couldn't find a reason
why one would work and not the other. It's got to be something
obscure, but at least I have a work around.
Thanks,
- Michal
------------------------------------------------------------------------
www.manifestation.com www.sabren.com www.linkwatcher.com www.zike.net
------------------------------------------------------------------------
More information about the Python-list
mailing list