SSL problem

Ng Pheng Siong ngps at madcap.netmemetic.com
Fri Jan 4 16:55:13 CET 2002


According to Michel Van den Bergh  <vdbergh at luc.ac.be>:
> Anyway here is the script again which highlights the problem.
> Perhaps some other people might like to try it.
> 
> #!/usr/bin/python2
> 
> import httplib
> 
> h=httplib.HTTPSConnection('telemeter.telenet.be')
> h.set_debuglevel(1)
> h.request('GET','/be/telenet/afe/isps/TelemeterLogin.jsp')
> response=h.getresponse()
> h.close()

Here's using M2Crypto on Python 2.0. (I just built Python 2.2 last night,
haven't tested M2Crypto with it.)

ngps at 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 httpslib
>>> h = httpslib.HTTPSConnection('telemeter.telenet.be')
>>> h.set_debuglevel(1)
>>> h.request('GET', '/be/telenet/afe/isps/TelemeterLogin.jsp')
send: 'GET /be/telenet/afe/isps/TelemeterLogin.jsp HTTP/1.1\015\012'
send: 'Host: telemeter.telenet.be\015\012'
send: 'Accept-Encoding: identity\015\012'
send: '\015\012'
>>> resp = h.getresponse()
reply: 'HTTP/1.0 200 OK\015\012'
header: Date: Fri, 04 Jan 2002 15:52:37 GMT
header: Pragma: no-cache
header: Server: WebLogic 6.0 Service Pack 2 05/24/2001 11:55:28 #117037
header: Content-Length: 3031
header: Content-Type: text/html; charset=ISO-8859-1
header: Expires: Thu, 01 Jan 1970 00:00:00 GMT
header: Set-Cookie: JSESSIONID=PDXPxZWqCDolz5PlBxX2w8HszY1nt1PCji52yNXjUH06C8oJm2g0!-1350228968832003849!wls1.oasis.telenet.be!8017!8018; path=/
header: Cache-Control: no-cache
>>> h.close()
>>> 

Cheers.


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




More information about the Python-list mailing list