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

2011-05-12 Thread Steve Liao
Daniel Stenberg wrote: > 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 f

Re: problems using negotiate with sspi in 7.21.6

2011-05-12 Thread Daniel Stenberg
On Thu, 12 May 2011, Ibraheem wrote: I have a couple of questions regarding http negotiate auth using sspi libs. (using 7.21.6 of libcurl) Unfortunately we don't have any test cases for negotiate auth and I personally have never used it. Also note that we have an existing bug report with an

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

2011-05-12 Thread Daniel Stenberg
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 t

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

2011-05-12 Thread Steve Liao
Hi, 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

Re: curllib_static.lib linking errors

2011-05-12 Thread Michael Wood
On 12 May 2011 15:41, mammar wrote: > Hi, > > I am using Visual Studio 2005 and trying to link the curllib_static.lib with > my application, but getting the following linking errors: > error LNK2001: unresolved external symbol __imp__curl_slist_append [...] > I am using curllib_static.lib provided

Re: documenting unit tests for functions

2011-05-12 Thread Dan Fandrich
On Thu, May 12, 2011 at 10:11:09AM +0300, Amr Shahin wrote: > i think it's better to document that the function is unit-tested in place, > since this will tell whoever is gonna modify it that there is a test available > for this function that will allow her to make sure she didn't cause any > regre

curllib_static.lib linking errors

2011-05-12 Thread mammar
Hi, I am using Visual Studio 2005 and trying to link the curllib_static.lib with my application, but getting the following linking errors: error LNK2001: unresolved external symbol __imp__curl_slist_append error LNK2001: unresolved external symbol __imp__curl_easy_setopt error LNK2001: unresolve

Re: [PATCH] CURLOPT_CACERTSTORE

2011-05-12 Thread girish
I wouldn't call that a "major weakness". I think you're bending the existing feature to better suit your slightly unusual corner case. How then is the list of root certificates protected against tampering? Or is that precaution unnecessary for anything except my unusual corner case? What is th

Re: does curl infringe this patent?

2011-05-12 Thread Hendrik Visage
I *LOVE* this part quoted: in which the connection can be interrupted for a long period of time Now I ask myself: "Self, how long is a long period of time? 1sec, 10 secs, 1minute, 10minutes, 1hour, 12 hours? a day?" And Self replied: "My oh my, it is all relative, let me up my timeout values to ca

RE: does curl infringe this patent?

2011-05-12 Thread Patrick Monnerat
> A bunch of US-based companies have been sued for infringing on patents, and (at least) one of them are using curl for the service they are being sued over. I'm not a lawyer either, but I have an idea: let's license the while loop and sue them back ;-) --

problems using negotiate with sspi in 7.21.6

2011-05-12 Thread Ibraheem
I have a couple of questions regarding http negotiate auth using sspi libs. (using 7.21.6 of libcurl) 1) In my test environment, it was crashing in http_negotiate_sspi.c due to the  fact that after the first Curl_output_negotiate , a call to cleanup clears the  neg_ctx->output_token but not the len

Re: documenting unit tests for functions

2011-05-12 Thread Amr Shahin
i think it's better to document that the function is unit-tested in place, since this will tell whoever is gonna modify it that there is a test available for this function that will allow her to make sure she didn't cause any regressions :) *Amr* On Wed, May 11, 2011 at 10:24 PM, Dan Fandrich wro