I have been getting this error when trying to install plugins:
Installation failed: Download failed. cURL error 18: transfer closed with 2126 bytes remaining to read.
I have found a solution on how to fix the error by suppressing the 'Expect: 100-continue' header using the following code:
curl_setopt($curl, CURLOPT_HTTPHEADER, array('Expect:'));
However, since Wordpress was installed with Windows Platform Installer and is running on IIS 10, I haven't been able to find an appropriate place to modify the cURL option. If anyone knows what part of the PHP code calls $curl
, it would really help me solve this issue. Your input and positive support is highly appreciated.