Re: Didn't receive 200 OK from remote server. (HTTP/1.1 400 Bad Request)
John Wilson <[email protected]> Wed, 8 Nov 2006 10:39:44 +0000
| Newsgroups | gmane.text.xml.rpc.specification |
|---|---|
| Message-ID | <[email protected]> |
On 8 Nov 2006, at 05:06, eg_breakup wrote:
> Hi,
>
> The xml_rpc server that I have written is not sending 200 OK.
>
> The client is erroring with "Didn't receive 200 OK from remote server.
> (HTTP/1.1 400 Bad Request)" .
>
> How do I fix this?. Do I need to manually add the 200 OK status to
> the server's response?.
>
> The server is written using C# and is hosted on IIS 5.0.
> Client is written using PHP.
>
> Please somebody tell me how to fix this.
This is telling you that the remote web server doe not like your HTTP
request. It's an error from the Web server not from the remote XML-
RPC implementation. The request isn't getting as far as the XML-RPC
server.
HTTP response codes are defined here http://www.w3.org/Protocols/
rfc2616/rfc2616-sec10.html
So the problem lies in your PHP code. Are you suing a standard PHP
XML-RPC client?
John Wilson
The Wilson Partnership
web http://www.wilson.co.uk
blog http://eek.ook.org
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/xml-rpc/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/xml-rpc/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[email protected]
mailto:[email protected]
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/