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.
----------------------------------------------------------

Attachment: msg00063/pgp00000.pgp
Description: PGP signature

Reply via email to