[Devel] Xmlrpc Module
Bogdan-Andrei Iancu
bogdan at voice-system.ro
Fri Dec 8 10:28:21 CET 2006
Hi Juha,
the requested URL is not correct. Must be like:
POST /RPC2 HTTP/1.0
if there is no parameters to the command, there is no need for the
<params> tag. So, you can try:
POST /RPC2 HTTP/1.0
Host: 127.0.0.1
Connection: close
User-Agent: OpenSIPg XML_RPC Client
Content-Type: text/xml; charset=ISO-8859-1
Content-Length: 155
<?xml version="1.0" ?>
<methodCall>
<methodName>lcr_dump</methodName>
</methodCall>
For more info about the syntax, see http://www.xmlrpc.com/spec .
regards,
Bogdan
Juha Heinanen wrote:
>why 400 bad request?
>
>-- juha
>
>Sent the following request:
>
>POST HTTP/1.0
>Host: 127.0.0.1
>Connection: close
>User-Agent: OpenSIPg XML_RPC Client
>Content-Type: text/xml; charset=ISO-8859-1
>Content-Length: 155
>
><?xml version="1.0" ?>
><methodCall>
> <methodName>lcr_dump</methodName>
> <params>
> <param>
> <value></value>
> </param>
> </params>
></methodCall>
>
>Received the following response:
>
>HTTP/1.1 400 Bad Request
>Content-type: text/html
>Connection: close
>Date: Thu, 07 Dec 2006 19:20:56 GMT
>Server: ABYSS/0.3
>
>
More information about the Devel
mailing list