Help!

I am debugging some changes I've made to the library codebase and 
somethig is driving me crazy.  When I try an example at Userland, things 
work fine.  However, I tried it against the server at usefulinc that 
runs a PHP  XML-RPC server and it breaks.  The cause is some extra 
integers being sent along with the XML.  These integers bump the 
response size over the Content-length and destroy the response.  What 
surprised me is that the unmodified library works fine for the same 
method call!  Did someone build in a leniency feature to deal with this? 
 If so I am having trouble finding it.  Here is a transcript of a 
session with the server.  You can try it yourself.

--
Ryan Hoegg
ISIS Networks

$ telnet xmlrpc.usefulinc.com 80
Trying 80.87.131.124...
Connected to usefulinc.com.
Escape character is '^]'.
POST /demo/server.php HTTP/1.1
User-Agent: ISIS Networks/0.2b (WinNT)
Host: xmlrpc.usefulinc.com:80
Content-Type: text/xml
Content-length: 211

<?xml version="1.0" 
encoding="ISO-8859-1"?><methodCall><methodName>examples.addtwo</methodName><params><param><value><int>12</int></value></param><param><value><int>11</int></value></param></params></methodCall>
HTTP/1.1 200 OK
Date: Wed, 11 Sep 2002 17:17:29 GMT
Server: Apache/1.3.26 (Unix) Debian GNU/Linux PHP/4.2.2
X-Powered-By: PHP/4.2.2
Transfer-Encoding: chunked
Content-Type: text/xml
Content-length: 121

79
<?xml version="1.0"?>
<methodResponse>
<params>
<param>
<value><int>23</int></value>
</param>
</params>
</methodResponse>
0

Connection closed by foreign host.
$


Reply via email to