,所以我已经有一个命令一个XML-RPC服务器调用start_appscurl命令
通常从蟒蛇我将运行它像这样
import xmlrpclib
app=xmlrpclib.ServerProxy("http://localhost:6610/app_rpc")
app.start_apps()
有没有什么方法来调用此方法卷曲命令?
我感兴趣的bash或PowerShell的
,所以我已经有一个命令一个XML-RPC服务器调用start_appscurl命令
通常从蟒蛇我将运行它像这样
import xmlrpclib
app=xmlrpclib.ServerProxy("http://localhost:6610/app_rpc")
app.start_apps()
有没有什么方法来调用此方法卷曲命令?
我感兴趣的bash或PowerShell的
以下命令将通过XML数据发布到XMLRPC调用服务器上的start_apps命令:
curl -d "<?xml version='1.0'?><methodCall><methodName>start_apps</methodName></methodCall>" http://localhost:6610/app_rpc
在Linux上调用使用单引号XML片段。
它只是http请求,所以...是的。 –
你能举个例子吗? – Nick