diff options
author | Christoph M. Becker <cmbecker69@gmx.de> | 2020-03-02 18:45:12 +0100 |
---|---|---|
committer | Christoph M. Becker <cmbecker69@gmx.de> | 2020-03-02 19:11:33 +0100 |
commit | fc8b3ab7cbb4f5e77584babeaf25b9bf16f524cd (patch) | |
tree | 95c01fc4473ead1707bc27b17cc33c9f71ace6ff /sapi/activescript/php5as_scriptengine.h | |
parent | a0377021c5640cd6e6ad719a76dd38f91f7c367b (diff) | |
download | php-git-fc8b3ab7cbb4f5e77584babeaf25b9bf16f524cd.tar.gz |
Fix #79013: Content-Length missing when posting a curlFile with curl
Unfortunately, some Webservers (e.g. IIS) do not implement the (F)CGI
specifications correctly wrt. chunked uploads (i.e. Transfer-encoding:
chunked), but instead pass -1 as CONTENT_LENGTH to the CGI
application. However, our (F)CFI SAPIs (i.e. cgi and cgi-fcgi) do not
support this.
Therefore we try to retrieve the stream size in advance and pass it to
`curl_mime_data_cb()` to prevent libcurl from doing chunked uploads.
This is basically the same approach that `curl_mime_filedata()`
implements, except that we are keeping already opened streams open for
the `read_cb()`.
Diffstat (limited to 'sapi/activescript/php5as_scriptengine.h')
0 files changed, 0 insertions, 0 deletions