1
0
mirror of https://github.com/php/php-src.git synced 2026-04-03 14:12:38 +02:00
Files
archived-php-src/ext
Christoph M. Becker fc8b3ab7cb 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()`.
2020-03-02 19:11:33 +01:00
..
2019-12-16 10:32:49 -08:00
2019-09-04 08:53:35 +02:00
2020-02-03 13:41:31 +01:00
2020-01-03 18:51:07 +01:00
2020-02-17 09:09:30 +01:00
2019-12-30 17:23:53 +01:00
2020-01-06 10:38:22 +01:00
2020-02-03 13:41:31 +01:00
2019-10-08 12:10:58 +02:00
2019-10-19 19:19:28 +02:00
2019-08-28 17:58:35 +02:00
2020-02-28 14:48:02 +01:00
2019-12-20 11:02:57 +01:00
2020-02-11 17:31:48 +01:00
2019-09-30 17:51:41 +02:00
2019-09-09 14:24:26 +02:00
2020-02-03 13:41:31 +01:00
2020-02-03 13:41:31 +01:00
2020-02-03 13:41:31 +01:00
2019-08-09 10:33:15 +02:00
2019-09-30 17:51:41 +02:00
2020-02-03 13:41:31 +01:00
2019-10-12 16:28:57 +02:00
2020-02-24 12:41:24 +01:00
2020-02-03 13:41:31 +01:00
2020-01-30 13:06:25 +01:00
2020-01-14 16:46:58 +01:00
2020-02-28 10:39:08 +01:00
2019-09-04 08:53:35 +02:00
2020-02-03 13:41:31 +01:00