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 » SOAP » Bug #1965

XML Parse Error when using SSL

Details

Submitted2004-07-23 17:14 UTC
Fromtjw at tjw dot org
Assignedarnaud
StatusClosed
PackageSOAP
PHP Version4.3.8
OSN/A
Roadmaps(Not assigned)

Comments

[2004-07-23 17:14 UTC] tjw at tjw dot org

Description:
------------
When using SOAP to an SSL host, curl is used as the SSL transport mechanism. curl defaults to the HTTP/1.1 protocol, and SOAP/Transport/HTTP.php can only parse HTTP/1.0 responses.

To fix this, add the following line around line 580 in SOAP/Transport/HTTP.php:

curl_setopt($ch, CURLOPT_HTTP_VERSION, 1);

That will force curl to use HTTP/1.0 and XML parsing will work again.