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
_______________________________________________
Devel mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/devel