Wait for a response using curl_multi_wait

2018-03-02 Thread Richard Copley
Hi, Using the "multi-single.c" example[1] as a testbed, I notice that after adding the easy handle and calling curl_multi_perform, the curl_multi_wait call returns immediately and sets numfds to 0, indicating there is no fd to wait on. Question: Isn't there a socket fd to wait on for the

crash issue: while invoking easy perform.

2018-03-02 Thread surya chandrika
Am getting following crash issue: BT: #0 0x7f5a2c4344ab in raise (sig=11) at ../nptl/sysdeps/unix/sysv/linux/pt-raise.c:37 #1 0x7f5a310b4582 in skgesigOSCrash () from /usr/lib/oracle/12.2/client64/lib/libclntsh.so.12.1 #2 0x7f5a316d48a5 in kpeDbgSignalHandler () from

Re: Fwd: Security fix: reset memory of Curl_easy->UserDefined->str

2018-03-02 Thread Prashant Chaudhari
From: Daniel Stenberg > Date: Fri, 2 Mar 2018 17:45:30 +0100 (CET) On Thu, 1 Mar 2018, Prashant Chaudhari wrote: *> I would like to add attached patch, which zero out the user defined data. I * *> am particularly targeting to reset the password/authentication secrets. * *> * *> Please find

Bearer token authentication?

2018-03-02 Thread John Hascall
Has any thought been given to the possibility of something along these lines: curl_easy_setopt(curl, CURLOPT_HTTPAUTH, CURLAUTH_BEARER); curl_easy_setopt(curl, CURLOPT_BEARER_TOKEN, token); *or* curl_easy_setopt(curl, CURLOPT_PASSWORD, token); because faffing around in the struct

Query on HTTP(S) connection

2018-03-02 Thread Ranjan Khanna
Hello, I am using curl_easy_perform for making HTTP(S) operations using the same curl handle (reusing the same curl handle for connection persistence). There are 2 things I want to achieve: 1. How can check using the curl handle if the connection is still established (the connection is not

Re: Fwd: Security fix: reset memory of Curl_easy->UserDefined->str

2018-03-02 Thread Daniel Stenberg
On Thu, 1 Mar 2018, Prashant Chaudhari wrote: I would like to add attached patch, which zero out the user defined data. I am particularly targeting to reset the password/authentication secrets. Please find attached patch on the libcurl version 7.57.0. and let me know if you can accept it and