<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.2614.3500" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>Error HTTP protocol&nbsp;&nbsp;(Server Zope 
2.6.1)</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>import 
httplib<BR>site="sandbox.rulemaker.net"<BR>conn = 
httplib.HTTPConnection(site)<BR>conn.set_debuglevel(3)<BR>headers={}</FONT></DIV>
<DIV><FONT face=Arial size=2>conn.request("GET", 
"/ngps/Dist/m2crypto-0.11.zip","",headers)<BR>r = 
conn.getresponse()</FONT></DIV>
<DIV><FONT face=Arial size=2>print "code ",r.status, r.reason, r.length<BR>while 
1:<BR>&nbsp;data = r.read(8192)<BR>&nbsp;if not data: break<BR>&nbsp;print 
data<BR>r.close()<BR>conn.close()</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>HOST = 'sandbox.rulemaker.net'&nbsp;&nbsp;&nbsp; # 
The remote host<BR>PORT = 
80&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
# The same port as used by the server<BR>s = socket.socket(socket.AF_INET, 
socket.SOCK_STREAM)<BR>s.connect((HOST, PORT))<BR>s.send('GET 
/ngps/Dist/m2crypto-0.11.zip HTTP/1.1\r\nHost: 
sandbox.rulemaker.net\r\nAccept-Encoding: identity\r\n\r\n')<BR>data = 
s.recv(8092)<BR>print data<BR>s.close()</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>response:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>HTTP/1.1 200 OK<BR>Server: Zope/(Zope 2.6.1 (source 
release, python 2.1, freebsd4)<EM>&lt;CR&gt;&lt;LF&gt;</EM><BR>, python 2.1.3, 
freebsd4) ZServer/1.1b1<BR>Date: Mon, 15 Sep 2003 07:23:04 GMT<BR>Content-Type: 
application/zip<BR>Accept-Ranges: bytes<BR>Etag: <BR>Content-Length: 
404629<BR>Last-Modified: Mon, 23 Jun 2003 18:28:52 GMT</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>There is an error in the 'Server' header line 
(<EM>&lt;CR&gt;&lt;LF&gt;</EM> in string 'Server' line).</FONT></DIV>
<DIV><FONT face=Arial size=2>httplib can't read the entire header.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Regards, vincent jaulin.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV></FONT></DIV></BODY></HTML>