Re: [phpxmlrpc-devel] Interoperability
Brought to you by:
ggiunta
From: Ryan H. <rh...@is...> - 2002-09-19 18:22:01
|
Hi, Yoiu are right. This is an issue with XML-RPC 1.1. My changes to the XML-RPC client software are being done specifically to add this functionality. I was reminded and have verified that chunking breaks the XML-RPC spec because of the requirement for a valid Content-Length header. However, I still want to use it. I will report success or failure when I get this done. Ryan Hoegg ISIS Networks Edd Dumbill wrote: >OK, I figured this out. Your request header has HTTP/1.1 in it. If >that's what you send, that's what the web server expects you to speak! > >The ones your program worked against worked because they don't implement >HTTP/1.1. > >Change your request to HTTP/1.0, or implement HTTP/1.1 properly :) > >-- Edd > >On Wed, 2002-09-18 at 08:45, Edd Dumbill wrote: > > >>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, >>> >>>I am a user and rare contributor to the Apache group's XML-RPC library >>>(http://xml.apache.org/xml-rpc). I am upgrading the HTTP client in our >>>code and decided to test against a server that is running your code. >>> Because the new HTTP client code is more strict in its interpretation >>>of the server's response, we are unable to access XML-RPC servers using >>>your code. A link to the posts to the xml-rpc-dev mailing list at >>>apache, where you can find a list of other sites that exhibited similar >>>behavior: >>>http://marc.theaimsgroup.com/?l=rpc-dev&m=103176693403852&w=2 >>>http://marc.theaimsgroup.com/?l=rpc-dev&m=103179721532649&w=2 >>> >>>What follows is a transcript of a session, which I executed manually. >>> >>>Cheers, >>>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. >>>$ >>> |