On Apr 5, 12:24 pm, a...@pythoncraft.com (Aahz) wrote:
> [posted & e-mailed, please respond on-group]
There was some problem with the CGIXMLRPCRequestHandler code in the
SimpleXMLRPC Server.
It was not getting the length to read from the CONTENT_LENGTH
environement variable ( as it the CGI server
[posted & e-mailed, please respond on-group]
In article ,
Phoe6 wrote:
>
>I have the following CGIXMLRPCRequestHandler usage example.
>handler = SimpleXMLRPCServer.CGIXMLRPCRequestHandler()
>handler.register_instance(Foo())
>handler.handle_request()
What happens when you
telnet localhost 80
I have the following CGIXMLRPCRequestHandler usage example. I have
both the server and the client in the same directory. I based this
following this example:
http://mail.python.org/pipermail/python-list/2005-May/320696.html
Server Code: Foo.py
import os
import SimpleXMLRPCServer
class Foo:
here's the simple example, for posterity
import os
import SimpleXMLRPCServer
class Foo:
def settings(self):
return os.environ
def echo(self, something):
return something
def greeting(self, name):
return "hello, " + name
handler = SimpleXMLRPCServer.CGIXMLRPCRe
I see the ones in the docs, but I really (apparently) need some usage
notes. Something as simple as an "echo" would probably do the trick.
--
http://mail.python.org/mailman/listinfo/python-list