cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: HTTP GET using easycurl - HTTP chunks in HTTP response.

From: Rangoli Mathur <Rangoli.Mathur_at_wnco.com>
Date: Wed, 13 Dec 2006 10:27:36 -0600

> -----Original Message-----
> From: curl-library-bounces_at_cool.haxx.se
> [mailto:curl-library-bounces_at_cool.haxx.se] On Behalf Of
> Daniel Stenberg
> Sent: Wednesday, December 13, 2006 9:39 AM
> To: libcurl development
> Subject: Re: FW: HTTP GET using easycurl - HTTP chunks in
> HTTP response.
>
> On Wed, 13 Dec 2006, Rangoli Mathur wrote:
>
> > I am using libcurl-7.16.0. I do see the response header
> saying chunk
> > encoding.
>
> You already sent this mail and I already replied...
Sorry, for some reason it didn't show up at my end.

Here are details of what I was trying:

The URL I am using is http://www.yahoo.com
Code snippet:
//////////////////////////////////////////

  curl_global_init(CURL_GLOBAL_ALL );
  curlHandle = curl_easy_init();
  curl_easy_setopt(curlHandle, CURLOPT_NOPROGRESS, 1);
  curl_easy_setopt(curlHandle, CURLOPT_WRITE_FUNCTION, write_data);
  curl_east_setopt(curlHandle, CURLOPT_HEADER, 1);
  curl_easy_setopt(curlHandle, CURLOPT_URL, "http://www.yahoo.com");
  //Trying with http 1.0
  curl_easy_setopt(curlHandle, CURLOPT_HTTP_VERSION,
CURL_HTTP_VERSION_1_0);
  int i = curl_easy_perform(curlHandle);
  
//////////////////////////////////////////////

I tried setting the HTTP version to 1.0 and I see all chunks being
coagulated.
If I don't set the HTTP version, in which case it uses HTTP 1.1, I see
([http-chunk-length] [http-chunk])* in the response.

 
> --
> Commercial curl and libcurl Technical Support:
> http://haxx.se/curl.html
>
Received on 2006-12-13