Message80440
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. |
|
Date |
User |
Action |
Args |
2009-01-24 10:19:54 | WayneHuang | set | recipients:
+ WayneHuang |
2009-01-24 10:19:54 | WayneHuang | set | messageid: <1232792394.35.0.81811153867.issue5040@psf.upfronthosting.co.za> |
2009-01-24 10:19:52 | WayneHuang | link | issue5040 messages |
2009-01-24 10:19:50 | WayneHuang | create | |
|