|
|
cURL Mailing List Monthly Index Single Mail
curl-tracker mailing list Archives
[ curl-Bugs-1531838 ] uploads with chunked encoding broken if header specified
From: SourceForge.net <noreply_at_sourceforge.net>
Date: Mon, 31 Jul 2006 09:11:13 -0700
Bugs item #1531838, was opened at 2006-07-31 09:11
Please note that this message will contain a full copy of the comment thread,
Initial Comment:
curl_easy_setopt(new_req->mCurlHandle, CURLOPT_UPLOAD, 1);
headers = curl_slist_append(headers, "Transfer-Encoding: chunked");
curl_easy_setopt(new_req->mCurlHandle, CURLOPT_READFUNCTION,
// don't set CURLOPT_INFILESIZE
This causes libCURL to announce the request body (the upload) as
The bug is in http.c, starting with the line:
if(!conn->bits.upload_chunky && (httpreq != HTTPREQ_GET)) {
As currently written, the logic runs like this:
if the upload is chunk (as the CURLOPT_INFILESIZE is not specified)
This second if should probably be something like:
ptr = checkheaders(data, "Transfer-Encoding:");
So the logic is more like:
if there no transfer-encoding header, or if it is chunked
markl_at_lindenlab.com
----------------------------------------------------------------------
You can respond by visiting:
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info