One Bug of Python 3.0
Wayne Huang
waynehuang.public at gmail.com
Thu Jan 15 22:56:23 EST 2009
I met a bug of CGIXMLRPCRequestHandler in Python3.0. Because of the bug, I
couldn't use RPC in Apache CGI.
The version of my Python 3.0 is "Python 3.0 (r30:67507, Dec 3 2008,
20:14:27) [MSC v.1500 32 bit (Intel)] win32".
The code of my client is follow.
s = xmlrpc.client.ServerProxy('http://localhost/cgi-bin/rpc.py')
print(s.system.listMethods())
The code of my server in Apache's cgi-bin is follow
#!C:/Python30/python.exe
from xmlrpc.server import *
handler=CGIXMLRPCRequestHandler()
handler.register_introspection_functions()
handler.handle_request()
When I run the client code,some error of parser raise.
I found it is the matter of 'Content-Length' in the HTTP Response of
CGIXMLRPCRequestHandler,it is a wrong number.
I don't know how to handle the problem.
Wait for your help.
Wayne
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090116/c5b99b15/attachment.html>
More information about the Python-list
mailing list