I am having the same issue I previously as reported in bug #2972180. I updated my PHP to 5.3.3 (also tried 5.3.2.) When performing data transfers of any size 1K + under SSL, I get the following Curl error: Error while processing content unencoding: invalid block type'. The exact same code works fine when not using SSL. I am using Windows XP / Vista / 2003 with the following configuration: Apache 2.2.15 server (VC9), PHP 5.3.3-VC9, Curl 7.21.0, OpenSSL 0.9.8l, zlib 1.2.3.
I ran the sample program suggested in the previous posting back in April 2010, and it runs fine in my configuration. However, my program fails to work under SSL with "real data."
Here's a sample of my client program:
$request = 'Demo';if(!$r->faultCode()){ echo("Success"); } else { echo("Failure <br />"); echo("An error occurred: "); echo("Code: " . htmlspecialchars($r->faultCode()). " Reason: '" . htmlspecialchars($r->faultString()) . "'</pre><br/>"); }
?>
The Debug output follows:
---SENDING---
<?xml version="1.0"?>
<methodCall>
<methodName>transfer.getDataTest</methodName>
<params>
<param>
<value><string>Demo</string></value>
</param>
</params>
</methodCall>
---END---
---CURL INFO---
url: https://localhost:443/xmlserver/TransferTest.php
content_type: text/xml
http_code: 200
header_size: 190
request_size: 402
filetime: -1
ssl_verify_result: 1
redirect_count: 0
total_time: 8.891
namelookup_time: 0
connect_time: 0.031
pretransfer_time: 0.063
size_upload: 167
size_download: 16384
speed_download: 1842
speed_upload: 18
download_content_length: 52549
upload_content_length: 0
starttransfer_time: 8.891
redirect_time: 0
certinfo:
---END---
Failure
An error occurred: Code: 8 Reason: 'CURL error: Error while processing content unencoding: invalid block type'
This server side program is returning about 50k of XML data back to the client.
What else should be I looking into at this point? Thanks for any suggestions or help that can be offered.
Doug
Anonymous