curl-library
Re: Question on libcurl through a squid proxy.
Date: Wed, 18 Oct 2006 16:59:21 -0700
m. allan noah wrote:
> i am confused, i thought the transmitting server set the cache control
> headers, not the client app?
More googling lead to me figuring out that curl sets Pragma: no-cache
by default. To disable it, you use something like this:
http://curl.haxx.se/libcurl/c/curl_slist_append.html
I'm re-building with this fix now..will see if it works.
Ben
>
> allan
>
> On Wed, 18 Oct 2006, Ben Greear wrote:
>
>> Hello!
>>
>> While trying to test out my use of curl with a squid proxy, it seems
>> that curl is always requesting a no-cache option that keeps squid from
>> using it's cache.
>>
>> I looked through the setopt, but I don't see anything that looks
>> promising.
>>
>> Any idea why/what setting would cause libcurl to request non-cached
>> objects?
>>
>> Thanks,
>> Ben
>>
>>
-- Ben Greear <greearb_at_candelatech.com> Candela Technologies Inc http://www.candelatech.comReceived on 2006-10-19