curl-library
Re: libcurl-7.16.2 - How to disable chunk?
Date: Mon, 18 Jun 2007 23:43:49 +0200 (CEST)
On Mon, 18 Jun 2007, Yori Sonoma wrote:
> I narrowed down that when libcurl uses "Transfer-Encoding: chunked" and
> "Expect: 100-continue", it's very slow (sorry, I didn't narrow it down in
> the code).
>
> For now, I jsut would like to disable those fetures, but do I have to
> disable HTTP 1.1 features? curl_easy_setopt(mCurlHandle,
> CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);
>
> By specifying HTTP 1.0, the performance gets smoking fast, but I'm concerned
> using HTTP 1.0 all the time. Please let me know if there is any quick way to
> disable only the chunk transfer & 100(continue).
It enables the chunky transfer since you do HTTP, upload, unknown size and
HTTP 1.1. You disable that by adding "Transfer-Encoding:" to the list you pass
to CURLOPT_HTTPHEADER.
It enables "Expect: 100-continue" when you do POST (in most cases), and you
disable that by adding "Expect:" in that same list.
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2007-06-18