[Twisted-Python] twisted.web.xmlrpc doesn't generate content length header

Steve Freitas sflist at ihonk.com
Wed Jul 30 00:51:47 EDT 2003

Hi all,

I'm experimenting with a C++ XML-RPC client library, and it refused to talk to 
my Twisted sample server. Why? It reported that no content length was given, 
so it gave up and sulked. So I dumped what Twisted coughed up, and sure 
enough, it's lacking a content length field (I'm calling the sample 
xmlrpc_add(self, a, b) function):

HTTP/1.0 200 OK
Date: Wed, 30 Jul 2003 04:41:56 GMT
Content-type: text/xml
Server: TwistedWeb/1.0.6

<?xml version='1.0'?>
Connection closed by foreign host.

Could it be that I'm doing something wrong? The XML-RPC spec states that the 
server must respond with a correct content length, so I would've expected 
Twisted to behave accordingly. So am I missing something, or does Twisted not 
comply with the spec (as Dave Winer defines it)?



P.S. For the DW-standard inclined, see http://www.xml-rpc.com/spec, under 
"Response format."

More information about the Twisted-Python mailing list