PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Web Services » XML_RPC » Bug #4116

XMLRPC-Response with status HTTP 100 are not accepted

Details

Submitted2005-04-11 14:43 UTC
Fromjj at learnbit dot com
Assigneddanielc
StatusClosed
PackageXML_RPC
PHP VersionIrrelevant
OSLinux
Roadmaps(Not assigned)

Comments

[2005-04-11 14:43 UTC] jj at learnbit dot com

Description:
------------
An XML-Response with HTTP Statuscode 100 is not accepted. I think the problem is the function parseResponse in the class XML_RPC_Message.

Code:
// see if we got an HTTP 200 OK, else bomb
// but only do this if we're using the HTTP protocol.
if (ereg('^HTTP', $data) &&
!ereg('^HTTP/[0-9\.]+ 200 ', $data)) {
$errstr = substr($data, 0, strpos($data, "\n") - 1);
error_log('HTTP error, got response: ' . $errstr);
...
}

It is possible, that the server first sends an Header with statuscode 100 and afterwards an Header with statuscode 200 and his response.

see: http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html