Re: sharing cookies … bug?

2020-03-05 Thread Ray Satiro via curl-library
On 3/5/2020 11:06 AM, Felipe Gasper via curl-library wrote: Would a PR to clarify the documentation on this point be acceptable? e.g., in curl_share_setopt(3)’s description of CURL_LOCK_DATA_COOKIE, something like: --- Prior to 7.67, designating a cookie-sharing share object on an easy

Re: sharing cookies … bug?

2020-03-05 Thread Felipe Gasper via curl-library
FWIW, here is some in-the-wild code that the 7.67 cookie-share change broke: https://github.com/sparky/perl-Net-Curl/blob/master/examples/02-multi-simple.pl -FG > On Mar 5, 2020, at 11:06 AM, Felipe Gasper via curl-library > wrote: > > > >> On Mar 5, 2020, at 10:51 AM, Daniel Stenberg

Re: sharing cookies … bug?

2020-03-05 Thread Felipe Gasper via curl-library
> On Mar 5, 2020, at 10:51 AM, Daniel Stenberg wrote: > > Here to just enable cookie-sharing but you never enable the cookie engine for > the second handle so while the cookies are known to the handle, it hasn't > been told to use them. This can probably be fixed by adding: > >

Re: Timer callback called excessively?!

2020-03-05 Thread Andreas Bengtsson via curl-library
Den tors 5 mars 2020 16:14Daniel Stenberg skrev: > On Mon, 2 Mar 2020, Andreas Bengtsson via curl-library wrote: > > > I am using libcurl 7.68.0 and i am experiencing a strange issue with the > > timer function callback being called a lot during download of a file. > > Do you know if this is any

Re: sharing cookies … bug?

2020-03-05 Thread Daniel Stenberg via curl-library
On Thu, 5 Mar 2020, Felipe Gasper via curl-library wrote: Hi Felipe! I think I know what the problems is. SHARE_SETOPT( easy1, share ); curl_easy_setopt(easy1, CURLOPT_COOKIEFILE, ""); Here you enable cookie-sharing and enables the cookie engine on the easy1 handle.

Re: CURLOPT_POST with no CURLOPT_POSTFIELDS

2020-03-05 Thread Daniel Stenberg via curl-library
On Wed, 4 Mar 2020, Jason Proctor via curl-library wrote: The issue is that if you specify CURLOPT_POST but don't specify CURLOPT_POSTFIELDS, then the library sticks in sending mode and doesn't call the header or write callbacks, despite the fact that the server has happily sent a response.

Re: Timer callback called excessively?!

2020-03-05 Thread Daniel Stenberg via curl-library
On Mon, 2 Mar 2020, Andreas Bengtsson via curl-library wrote: I am using libcurl 7.68.0 and i am experiencing a strange issue with the timer function callback being called a lot during download of a file. Do you know if this is any difference in behavior compared to previous versions? When

sharing cookies … bug?

2020-03-05 Thread Felipe Gasper via curl-library
I’ve got the following sample code: = #include #include #define SHARE_SETOPT(easy, value) curl_easy_setopt(easy, CURLOPT_SHARE, value) int main() { fprintf(stderr, "Cookie version - %s\n", curl_version()); CURLSH* share = curl_share_init(); curl_share_setopt(share,