Re: [phpxmlrpc] Problems recieving XML body on Perl server

2001-10-10 Thread Justin R. Miller

Thus spake Eric Schmidt ([EMAIL PROTECTED]):

> I'm trying to access an xml-rpc method on a cgi server that's set up 
> exactly like Eric Kidd's "A CGI-Based Perl Server" (XML-RPC HOWTO Section 
> 5) with php's xmlrpc.inc.  The xml request doesn't seem to be coming in 
> on STDIN, so the server returns an http_error(400, "Bad Request").
> 
> It seems like the request is being sent to the server $ENV{CONTENT_TYPE} 
> and $ENV{CONTENT_LENGTH} are correct, but I can't find the actual 
> XML request.  Please help.

Well it looks like it could be a couple of other things as well.  A 400
comes about on a bad content-type, but I doubt xmlrpc.inc is not working
in that regard.  It also might be that $count != $length just after the
body fetching on the server side.  My Perl's a little rusty, but it
looks like read() returns the number of bytes read after reading up to
$length bytes, and for some reason that might not be matching.  I don't
see how though, since $length comes from the server-side environment
variable.  I doubt it's a problem with xmlrpc.inc, but maybe... 

Maybe try printing out the XML on the client side instead of sending it
for debug purposes?  

-- 
| Justin R. Miller / [EMAIL PROTECTED] / 0xC9C40C31
| Of all the things I've lost, I miss my pants the most.
--



msg00063/pgp0.pgp
Description: PGP signature


Re: [phpxmlrpc] Problems recieving XML body on Perl server

2001-10-10 Thread Justin R. Miller

Thus spake Eric Schmidt ([EMAIL PROTECTED]):

> I'm trying to access an xml-rpc method on a cgi server that's set up
> exactly like Eric Kidd's "A CGI-Based Perl Server" (XML-RPC HOWTO
> Section 5) with php's xmlrpc.inc.  The xml request doesn't seem to be
> coming in on STDIN, so the server returns an http_error(400, "Bad
> Request").
> 
> It seems like the request is being sent to the server
> $ENV{CONTENT_TYPE} and $ENV{CONTENT_LENGTH} are correct, but I can't
> find the actual XML request.  

Do you mean that you are using Eric's example as the server (in Perl)
and xmlrpc.inc as the client (in PHP)?

-- 
| Justin R. Miller / [EMAIL PROTECTED] / 0xC9C40C31
| Of all the things I've lost, I miss my pants the most.
--



msg00062/pgp0.pgp
Description: PGP signature