#25228 [Opn->Ver]: "-503 Unclosed Token" when using XML_RPC_Server w/ non-PHP client

From: Date: Thu, 11 Sep 2003 12:03:42 +0000
Subject: #25228 [Opn->Ver]: "-503 Unclosed Token" when using XML_RPC_Server w/ non-PHP client
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-21388@lists.php.net to get a copy of this message
ID: 25228 Updated by: nicos@php.net Reported By: marshall at exclupen dot com -Status: Open +Status: Verified Bug Type: PEAR related PHP Version: Irrelevant -Assigned To: +Assigned To: ssb Previous Comments: ------------------------------------------------------------------------ [2003-08-25 15:48:38] marshall at exclupen dot com I moved XML_RPC_Client to RPC/Client.php too. http://www.exclupen.com/misc/php/pear_patches/XML_RPC/Client.phps Here's a diff for Server.php, RPC.php, and package.xml: http://www.exclupen.com/misc/php/pear_patches/XML_RPC/XML_RPC.diff ------------------------------------------------------------------------ [2003-08-24 17:52:03] marshall at exclupen dot com Description: ------------ "There's a bug in XML_RPC_Server, that, many clients simply ignore. However, some clients, in particular xmlrpc-c for C have big issues with this. When using this particular client, the error "-503 Unclosed Token" is received." -- http://revjim.net/item/9507/ The error seems to be caused because the "Content-length" header is sent instead of "Content-Length" in XML_RPC_Server::service(). I am adding inline documentation to the entire package and fixing this bug. I will post a patch tonight or tomorrow. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=25228&edit=1

« previous php.pear.dev (#21388) next »