cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: CURLOPT_WRITEFUNCTION callback not called when If-Modified-Since not obeyed

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 12 May 2011 23:08:41 +0200 (CEST)

On Thu, 12 May 2011, Steve Liao wrote:

> My application uses CURL_TIMECOND_IFMODSINCE. When the HTTP server returns
> a 304 in response to an HTTP GET in which the If-Modified-Since header is
> the same time as the last modification time of the file, things are fine.
>
> However, when an HTTP server that doesn't obey that header returns a 200
> response and provides the file content, the callback registered against
> CURLOPT_WRITEFUNCTION doesn't get called even though there is file content.
> This behavior is observed on libcurl 7.21.6. When the application is built
> against libcurl 7.17.1, this beahavior doesn't show up - the callback
> registered against CURLOPT_WRITEFUNCTION gets called.

So what's the full set of request headers in the libcurl request and response
headers from the server?

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2011-05-12