On Wed, 11 Jan 2012, Arif Ali Saiyed wrote:

my problem is even after the file is being updated on web server, It's still downloading the cached copy of it.

This is not due to any caching done by curl though, as curl has no caching of contents at all - ever.

after some search I found that there is something called "Pragma:nochache" header, but I am not sure how to use this ? there is no curl_easy_setopt for doing this.

You insert that header into a request by yourself with CURLOPT_HTTPHEADER. See http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTHTTPHEADER

--

 / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Reply via email to