Home » Web Services » SOAP » Bug #1965
XML Parse Error when using SSL
Details
| Submitted | 2004-07-23 17:14 UTC |
|---|---|
| From | tjw at tjw dot org |
| Assigned | arnaud |
| Status | Closed |
| Package | SOAP |
| PHP Version | 4.3.8 |
| OS | N/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.