On 1/24/07, David Weldon <dweldon / gmail.com> wrote:
> I need to make remote procedure calls to a server that has a
> non-standard RPC protocol. ...
>
> Whenever I try to talk to the server it always replies that I have a
> malformed POST. I'm using http-access2; someone packaged it as a gem but
> its not in the official repository. I'd like to know:
>
> 1) Is there a better way of doing all of this? (something other than
> http-access2)
> 2) Is there something obviously wrong with the above code? Keep in mind
> the XML part is verified in a working perl script.

In situations like this I often find a network protocol analyzer like Wireshark
very helpful.  I would start a packet capture filtering on port 8755 and run
both versions of the script (either in one capture session or two, probably
two).  Then, for both captured streams in Wireshark: Analyze -> Follow TCP
Stream.  That should present a nice view of the POST request sent by each
script.