PEAR:XML_RPC - Bad HTTP/0.9 request type ('POST')
| From: | Mark McCulligh | Date: | Tue, 15 Feb 2005 15:23:06 +0000 |
| Subject: | PEAR:XML_RPC - Bad HTTP/0.9 request type ('POST') | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-17535@lists.php.net to get a copy of this message | ||
Hi Group,
I am trying to build a XML-RPC client in PHP to connect to a Python XML-RPC server. When I send the message I the following response:
<head>
<title>Error response</title>
</head>
<body>
<h1>Error response</h1>
<p>Error code 400.
<p>Message: Bad HTTP/0.9 request type ('POST').
<p>Error code explanation: 400 = Bad request syntax or unsupported method.
</body>
I have tested my client with a PHP server and it works fine and I have test the Python Server uses a Python client and it works too. But when I call the Python Server from a PHP Client I get the above message.
Can someone tell me what I am doing wrong? All I can find of the Net is that PHP client is not building the Header HTML POST information right, so the Python Server will not process it.
Thanks for your help,
Mark.