Re: [phpxmlrpc-devel] Interoperability
Brought to you by:
ggiunta
From: Edd D. <ed...@us...> - 2002-09-18 07:45:27
|
Hey Ryan, looks like my Apache on xmlrpc.usefulinc.com is speaking HTTP/1.1, using the chunked encoding. ie. it's not actually wrong per HTTP, but it is wrong per the XML-RPC spec. I'll have to look into why this is happening, some config issue I suspect. Meanwhile it's trivial to set up a demo server on a machine of your own, just unpack the distribution and install the demo files. On Fri, 2002-09-13 at 21:53, Ryan Hoegg wrote: > Hi, >=20 > I am a user and rare contributor to the Apache group's XML-RPC library=20 > (http://xml.apache.org/xml-rpc). I am upgrading the HTTP client in our=20 > code and decided to test against a server that is running your code.=20 > Because the new HTTP client code is more strict in its interpretation=20 > of the server's response, we are unable to access XML-RPC servers using=20 > your code. A link to the posts to the xml-rpc-dev mailing list at=20 > apache, where you can find a list of other sites that exhibited similar=20 > behavior: > http://marc.theaimsgroup.com/?l=3Drpc-dev&m=3D103176693403852&w=3D2 > http://marc.theaimsgroup.com/?l=3Drpc-dev&m=3D103179721532649&w=3D2 >=20 > What follows is a transcript of a session, which I executed manually. >=20 > Cheers, > Ryan Hoegg > ISIS Networks >=20 > $ 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 >=20 > <?xml version=3D"1.0"=20 > encoding=3D"ISO-8859-1"?><methodCall><methodName>examples.addtwo</methodN= ame><params><param><value><int>12</int></value></param><param><value><int>1= 1</int></value></param></params></methodCall>=20 >=20 > 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 >=20 > 79 > <?xml version=3D"1.0"?> > <methodResponse> > <params> > <param> > <value><int>23</int></value> > </param> > </params> > </methodResponse> > 0 >=20 > Connection closed by foreign host. > $ >=20 >=20 >=20 >=20 >=20 > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > phpxmlrpc-devel mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/phpxmlrpc-devel --=20 Edd Dumbill ----| phone: +44 1904 427740 fax: +44 8709 909625 |----- | Managing Editor, XML.com, XMLhack.com -- Chair, XML Europe 2002 | I PGP sign my email; more info at http://heddley.com/edd/pgp.html |