On Thu, Jan 31, 2002 at 10:56:09AM -0500, Jeff Johnson wrote:
> I was so happy that I could switch to Python 2.2 for my new Webware
> server because 2.2 fixed the problem where accessing an SSL page would
> lock all threads until the read finished.  But now I can't read the SSL
> page at all because they changed the implementation and it no longer
> supports some existing SSL servers.  My credit card processor is one of
> them.  I checked sourceforge and found the problem.  Unfortunately,
> Guido is taking the high ground and saying, I think we're right, IIS is
> wrong; we don't need to open those pages anyway.  Great.

ngps@madcap:~$ python
Python 2.0 (#4, Oct 18 2000, 23:09:30) 
[GCC 2.95.2 19991024 (release)] on freebsd4
Type "copyright", "credits" or "license" for more information.
>>> from M2Crypto import m2urllib
>>> url = m2urllib.FancyURLopener()
>>> url.addheader('Connection', 'close')
>>> u = url.open('https://wwws.task.com.br/i.htm')
send: 'GET /i.htm HTTP/1.1\015\012'
send: 'Host: wwws.task.com.br\015\012'
send: 'Accept-Encoding: identity\015\012'
send: 'User-agent: Python-urllib/1.13\015\012'
send: 'Connection: close\015\012'
send: '\015\012'
reply: 'HTTP/1.1 200 OK\015\012'
header: Server: Microsoft-IIS/5.0
header: Connection: close
header: Date: Fri, 01 Feb 2002 16:40:09 GMT
header: Content-Type: text/html
header: Accept-Ranges: bytes
header: Last-Modified: Tue, 18 Dec 2001 21:17:02 GMT
header: ETag: "05be155988c11:860"
header: Content-Length: 80
>>> while 1:
...     data = u.read()
...     if not data: break
...     print data
... 
<HTML>
<HEAD><TITLE>HTTPS Test</TITLE></HEAD>
<BODY>HTTPS Test</BODY>
</HTML>
>>> u.close()
>>> 


-- 
Ng Pheng Siong <[EMAIL PROTECTED]> * http://www.netmemetic.com


_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to