Re: libcurl DNS resolver does it support DNS srv queries to fetch the port number.

2019-06-04 Thread Badari Prasad via curl-library
Thank you for your response. On Mon 3 Jun, 2019, 11:28 Daniel Stenberg, wrote: > On Mon, 3 Jun 2019, Badari Prasad via curl-library wrote: > > >Does libcurl DNS resolver (native DNS resolver, not using c-ares) > support > > fetching port numbers for a domain using sr

Re: libcurl DNS resolver does it support DNS srv queries to fetch the port number.

2019-06-03 Thread Daniel Stenberg via curl-library
On Mon, 3 Jun 2019, Badari Prasad via curl-library wrote: Does libcurl DNS resolver (native DNS resolver, not using c-ares) support fetching port numbers for a domain using srv query ? libcurl doesn't support SRV records (or URI records) at all, no matter which resolver is used

libcurl DNS resolver does it support DNS srv queries to fetch the port number.

2019-06-02 Thread Badari Prasad via curl-library
Hi , Does libcurl DNS resolver (native DNS resolver, not using c-ares) support fetching port numbers for a domain using srv query ? Thanks in advance Regards, Badari --- Unsubscribe: https://cool.haxx.se/list/listinfo/curl

Re: TLS v1.2 support in libcurl

2019-06-01 Thread Daniel Stenberg via curl-library
On Fri, 31 May 2019, ashish yadav via curl-library wrote: I am looking for version of libcurl which support TLS v1.2. Could anyone please help me in that ? I'm pretty sure all libcurl versions released the last 10 years or so do as long as you build it with a TLS library that supports

TLS v1.2 support in libcurl

2019-06-01 Thread ashish yadav via curl-library
Hi, I am looking for version of libcurl which support TLS v1.2. Could anyone please help me in that ? Thanks & Regards Ashish Yadav --- Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library Etiquette: h

Re: create rpm for libcurl

2019-05-23 Thread surya chandrika via curl-library
, you > don't > > > > need to do anything special". > > > > I have installed openssl and openssl-devel via yum install, so it > should > > > > > > be > > > > > > > in default paths. > > > > > > > > Not

Re: create rpm for libcurl

2019-05-22 Thread Kamil Dudka via curl-library
> > > > Note: Am generating rpm in one host and installing rpm in another host. > > > > Is > > > > > there any thing else that i need to make sure so that its takes openssl > > > instead of gnutls. > > > > You need to check out

Re: create rpm for libcurl

2019-05-22 Thread surya chandrika via curl-library
> Note: Am generating rpm in one host and installing rpm in another host. > Is > > there any thing else that i need to make sure so that its takes openssl > > instead of gnutls. > > You need to check output of the `configure` script and possibly config.log > to > figure ou

RE: Compiling libcurl with HTTP/2 support in OpenWrt

2019-05-21 Thread Connor Ruggles via curl-library
Sorry for the very late reply, but I did as you said and ran this snippet: printf("%d\n", curl_version_info(CURLVERSION_NOW)->features & CURL_VERSION_HTTP2); And it printed a 0, so for some reason even though libcurl is being compiled with nghttp2 the support is not being add

Re: create rpm for libcurl

2019-05-20 Thread Kamil Dudka via curl-library
onfigure` script and possibly config.log to figure out why openssl is not used. It is also possible that you have successfully built curl against openssl but then you use a different curl executable or libcurl library than the ones that you have built. Kamil

Re: create rpm for libcurl

2019-05-20 Thread surya chandrika via curl-library
t; > > wrote: > > > > On Fri, May 10, 2019 at 7:11 PM Kamil Dudka > wrote: > > > > > On Friday, May 10, 2019 3:00:46 PM CEST surya chandrika via > > > > > > curl-library > > > > > > > > wrote: > > > > >

Re: create rpm for libcurl

2019-05-15 Thread Kamil Dudka via curl-library
ote: > > > > On Friday, May 10, 2019 3:00:46 PM CEST surya chandrika via > > > > curl-library > > > > > > wrote: > > > > > Hi All, > > > > > > > > > > Am trying to create rpm for libcurl version 7.64.0 using

Re: create rpm for libcurl

2019-05-15 Thread surya chandrika via curl-library
ibrary > > > > > > wrote: > > > > Hi All, > > > > > > > > Am trying to create rpm for libcurl version 7.64.0 using rpm build. > > > > Am trying to write SPEC file for the same. > > > > > > Why do not you use a

Re: create rpm for libcurl

2019-05-13 Thread Kamil Dudka via curl-library
On Sunday, May 12, 2019 7:45:28 PM CEST surya chandrika via curl-library wrote: > On Fri, May 10, 2019 at 7:11 PM Kamil Dudka wrote: > > On Friday, May 10, 2019 3:00:46 PM CEST surya chandrika via curl-library > > > > wrote: > > > Hi All, > > > > >

Re: create rpm for libcurl

2019-05-12 Thread surya chandrika via curl-library
On Fri, May 10, 2019 at 7:11 PM Kamil Dudka wrote: > On Friday, May 10, 2019 3:00:46 PM CEST surya chandrika via curl-library > wrote: > > Hi All, > > > > Am trying to create rpm for libcurl version 7.64.0 using rpm build. > > Am trying to write SPEC file for th

Re: create rpm for libcurl

2019-05-10 Thread Kamil Dudka via curl-library
On Friday, May 10, 2019 3:00:46 PM CEST surya chandrika via curl-library wrote: > Hi All, > > Am trying to create rpm for libcurl version 7.64.0 using rpm build. > Am trying to write SPEC file for the same. Why do not you use an existing SPEC file to begin with? https://src.fedor

create rpm for libcurl

2019-05-10 Thread surya chandrika via curl-library
Hi All, Am trying to create rpm for libcurl version 7.64.0 using rpm build. Am trying to write SPEC file for the same. Please let me know what would be the correct value for Group: License: section is spec file. Thanks Surya

Re: libcurl hangs in curl_multi_cleanup

2019-05-06 Thread Firefox OS via curl-library
anded in git too and will ship in the next release. > Hi, I've rebuilt libcurl-7.64.1 patched with just https://github.com/curl/curl/commit/e06b8bdae6a6e552d7430c00853d18b9378eac29 and the issue seems to be gone. Thanks --- Unsub

Re: Libcurl

2019-04-29 Thread Igor Korot via curl-library
Hi, On Mon, Apr 29, 2019 at 2:54 PM Татьяна Комиссарова via curl-library wrote: > > > Hi. Help, please, to collect Curl library. I downloaded the latest version, > but I do not know what to do next. Thank you for help What is you task? What are you suppose to do? Thank you. > >

Re: Libcurl

2019-04-29 Thread Daniel Stenberg via curl-library
code and now you want to build and install it? Or did you download a package/pre-built binary and have a problem to install it? Which operating system are you working with? For a "getting started" guide on libcurl basics, I think everything curl's chapter here is a good st

Libcurl

2019-04-29 Thread Татьяна Комиссарова via curl-library
Hi. Help, please, to collect Curl library. I downloaded the latest version, but I do not know what to do next. Thank you for help --- Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library Etiquette:

Re: libcurl hangs in curl_multi_cleanup

2019-04-21 Thread Daniel Stenberg via curl-library
On Fri, 19 Apr 2019, Daniel Stenberg via curl-library wrote: My proposed fix for this issue is now here: https://github.com/curl/curl/pull/3795 That one landed in git too and will ship in the next release. -- / daniel.haxx.se

Re: libcurl hangs in curl_multi_cleanup

2019-04-18 Thread Daniel Stenberg via curl-library
followed the order given at https://curl.haxx.se/libcurl/c/curl_multi_cleanup.html but still curl_multi_cleanup() doesn't exit for a long time. The issue occurs on libcurl-7.61.1 as well as on latest release curl-7.64.1. Am I doing something wrong, or is it a bug? It looks like a bug. I would

libcurl hangs in curl_multi_cleanup

2019-04-17 Thread Firefox OS via curl-library
Hi all I wrote a simplified program (attached) to demonstrate a problem I'm dealing with. The problem is that libcurl doesn't allow the program to quit because it hangs inside curl_multi_cleanup: (gdb) bt #0 0x77e463f1 in poll () from /lib64/libc.so.6 #1 0x77f58a46 in poll

Re: Create Serverside Streaming connection using libcurl

2019-04-01 Thread Ray Satiro via curl-library
On 3/30/2019 4:59 AM, Prashant Shubham via curl-library wrote: > On 3/30/19, Daniel Stenberg wrote: >> On Thu, 7 Mar 2019, Prashant Shubham via curl-library wrote: >> >>> I have gone through libcurl but couldn't find a clear implementation of >>> streaming conne

Re: Create Serverside Streaming connection using libcurl

2019-03-30 Thread Dan Fandrich via curl-library
On Sat, Mar 30, 2019 at 02:29:34PM +0530, Prashant Shubham via curl-library wrote: > On 3/30/19, Daniel Stenberg wrote: > > I would say the opposite and claim that libcurl supports streaming of > > virtually all protocols. At least the TCP based ones. libcurl will sit and > >

Re: Create Serverside Streaming connection using libcurl

2019-03-30 Thread Prashant Shubham via curl-library
On 3/30/19, Daniel Stenberg wrote: > On Thu, 7 Mar 2019, Prashant Shubham via curl-library wrote: > >> I have gone through libcurl but couldn't find a clear implementation of >> streaming connection except rtsp one. > > I would say the opposite and claim that li

Re: Create Serverside Streaming connection using libcurl

2019-03-30 Thread Daniel Stenberg via curl-library
On Thu, 7 Mar 2019, Prashant Shubham via curl-library wrote: I have gone through libcurl but couldn't find a clear implementation of streaming connection except rtsp one. I would say the opposite and claim that libcurl supports streaming of virtually all protocols. At least the TCP based

Create Serverside Streaming connection using libcurl

2019-03-29 Thread Prashant Shubham via curl-library
Hi All, I want to create a streaming connection from client to server using libcurl. The client will once connect to server and keep listening for responses from the server. Stream teardown can happen when client requests.Example:Connect to serverKeep listening for responses to server. Something

Re: How to use libcurl with a config file?

2019-03-25 Thread Daniel Stenberg via curl-library
ig and set libcurl options? It would certainly speed up development of applications that use libcurl, and that need/want to support dozens of libcurl options. Yes, I can certainly see the beauty of offering something like that and the curl tool could be a primary user of that API. At the

Re: How to use libcurl with a config file?

2019-03-22 Thread Rich Megginson via curl-library
On 3/22/19 3:51 PM, Daniel Stenberg wrote: On Wed, 20 Mar 2019, Rich Megginson via curl-library wrote: I'm writing a C application (rsyslog) which uses libcurl and I would like to be able to pass in a lot of parameters to libcurl without having to implement support for every single option

How to use libcurl with a config file?

2019-03-20 Thread Rich Megginson via curl-library
I'm writing a C application (rsyslog) which uses libcurl and I would like to be able to pass in a lot of parameters to libcurl without having to implement support for every single option to pass in separately to curl_easy_setopt().  The curl cli has a -K option which you can use to pass

Re: 7.64.0 crash in threaded-shared-conn.c with static libcurl on Linux

2019-03-17 Thread Daniel Stenberg via curl-library
On Sun, 17 Mar 2019, Casper wrote: The additional updates appear to have solved the issues - no crashing now. This is great! Fingers crossed that it stays that way. (Not interesting any more - but it was the example unmodified on Linux (Ubuntu 16.04.5), gcc 5.4.0) Cool, thanks for

Re: 7.64.0 crash in threaded-shared-conn.c with static libcurl on Linux

2019-03-17 Thread Casper via curl-library
The additional updates appear to have solved the issues - no crashing now. This is great! Fingers crossed that it stays that way. (Not interesting any more - but it was the example unmodified on Linux (Ubuntu 16.04.5), gcc 5.4.0) C. ‐‐‐ Original Message ‐‐‐ On Sunday, March 17, 2019

Re: 7.64.0 crash in threaded-shared-conn.c with static libcurl on Linux

2019-03-17 Thread Daniel Stenberg via curl-library
On Sun, 17 Mar 2019, Casper wrote: Unfortunately the fix did not work for me. I built your branch and tried with the lib and saw the following: I didn't get exactly that crash myself but further experimenting with the example code in my branch (and a scan-build) revealed some remaining

Re: 7.64.0 crash in threaded-shared-conn.c with static libcurl on Linux

2019-03-16 Thread Casper via curl-library
Thanks for your quick response! I will give it a go, while it works through reviews and gets into the master. I believe the 7.64.1 code freeze was last Wednesday? Is your expectation that this will be included in the release after? I assume that's 2 months from now, looking at your past

Re: 7.64.0 crash in threaded-shared-conn.c with static libcurl on Linux

2019-03-16 Thread Daniel Stenberg via curl-library
On Sat, 16 Mar 2019, Daniel Stenberg via curl-library wrote: I can reproduce and I'm on it. I believe this regression was introduced between 7.61.0 and 7.62.0. Here's my first take a fix: https://github.com/curl/curl/pull/3686 -- / daniel.haxx.se

Re: 7.64.0 crash in threaded-shared-conn.c with static libcurl on Linux

2019-03-16 Thread Daniel Stenberg via curl-library
On Fri, 15 Mar 2019, Casper via curl-library wrote: The executable I build from the sample, threaded-shared-conn.c crashes pretty much every single time. It is linked to libcurl 7.64.0 static library. This is on Linux (Ubuntu 16.04.5), gcc 5.4.0. Here is an example backtrace: I can

7.64.0 crash in threaded-shared-conn.c with static libcurl on Linux

2019-03-15 Thread Casper via curl-library
Hello The executable I build from the sample, threaded-shared-conn.c crashes pretty much every single time. It is linked to libcurl 7.64.0 static library. This is on Linux (Ubuntu 16.04.5), gcc 5.4.0. Here is an example backtrace: Core was generated by `./threaded-shared-conn'. Program

Re: Doubt regarding the use of linux namespaces in Libcurl

2019-03-05 Thread Vipin P R via curl-library
Thank you. I'll try that. Basically use setns(2) to set the network namespace during the open_socket function and then pass the relevant params for that namespace. Sincerely, Vipin P.R. --- Unsubscribe:

Doubt regarding the use of linux namespaces in Libcurl

2019-03-04 Thread Vipin P R via curl-library
Hi, I am looking for a way to bind an easy handle or a multi handle of libcurl to a particular linux namespace for every request. Is there some way in libcurl to do this internally. If not, can you please guide me how to do this using C language. Sincerely, Vipin P.R

Re: libcurl reconnect

2019-02-27 Thread Andrew Kurushin via curl-library
- Both machines are Ubuntu 18.04 with ping icmp_seq=1 ttl=64 time=0.224 ms - Just check selfcompiled libcurl 7.64 - have same issue - Forcing http 1.0 seems resolves problem (Thanks for advise)! So i have add "Connection: close" to http request headers (pushed changes to my repo). Now p

Re: libcurl reconnect

2019-02-27 Thread Stefan Eissing via curl-library
have made small http server benchmark tool base on libcurl library >> (https://github.com/ajax16384/ahsbt). >> >> There are plenty number of tools with same functionality but they have some >> disadvantages: >> >> - ab (https://httpd.apache.org/docs/2

Re: libcurl reconnect

2019-02-27 Thread Aleksandar Lazic via curl-library
Hi Andrew. Am 27.02.2019 um 08:17 schrieb Andrew Kurushin via curl-library: > Hello All > > > I have made small http server benchmark tool base on libcurl library > (https://github.com/ajax16384/ahsbt). > > There are plenty number of  tools with same functionali

Re: libcurl reconnect

2019-02-27 Thread Daniel Stenberg via curl-library
On Wed, 27 Feb 2019, Andrew Kurushin via curl-library wrote: Now I am stuck on strange libcurl behaviour: then I'm trying to run test without reusing same socket connection (CURLOPT_FORBID_REUSE==1), program starts to perform very slow and with higher CPU usage compared to apache ab tool

libcurl reconnect

2019-02-26 Thread Andrew Kurushin via curl-library
Hello All I have made small http server benchmark tool base on libcurl library ( https://github.com/ajax16384/ahsbt). There are plenty number of tools with same functionality but they have some disadvantages: - ab (https://httpd.apache.org/docs/2.4/programs/ab.html) and wrk ( https

Re: How to fix libcurl error(easy handled already used in multi handle) ?

2019-02-18 Thread kishore koney via curl-library
ime. > Exactly how you make sure that is true, is up to you. > > But if you suspect this is a curl issue somehow, then please write up an > example application that uses libcurl in a similar way that your app does > so > that you can show us and we can

Re: How to fix libcurl error(easy handled already used in multi handle) ?

2019-02-17 Thread Daniel Stenberg via curl-library
thread always invoke init + perform ?* You MUST NOT use the same handle from more than one thread at any time. Exactly how you make sure that is true, is up to you. But if you suspect this is a curl issue somehow, then please write up an example application that uses libcurl in a similar way

Re: Libcurl server-sent events (SSE) write callback notification

2019-02-16 Thread Daniel Stenberg via curl-library
On Thu, 14 Feb 2019, Chris Dolfin wrote: For these long-going HTTP streams, curl_easy_perform() will not return until the connection closes and that might take a long time until it does. Is my application going to block on curl_easy_perform() in this case? Yes, that's how

Re: Libcurl server-sent events (SSE) write callback notification

2019-02-14 Thread Chris Dolfin via curl-library
tenberg wrote: > On Wed, 13 Feb 2019, Chris Dolfin via curl-library wrote: > > > http://www.w3.org/TR/eventsource > > To me, this is just a HTTP stream that may potentially stick around for a > long > time. Nothing strange for libcurl. > > > Libcurl always call

Re: Libcurl server-sent events (SSE) write callback notification

2019-02-14 Thread Daniel Stenberg via curl-library
On Wed, 13 Feb 2019, Chris Dolfin via curl-library wrote: http://www.w3.org/TR/eventsource To me, this is just a HTTP stream that may potentially stick around for a long time. Nothing strange for libcurl. Libcurl always call the “write callback” when it receives HTTP response and stores

Libcurl server-sent events (SSE) write callback notification

2019-02-13 Thread Chris Dolfin via curl-library
I am trying to understand how to implement licburl client to process server sent events SSE; W3C Recommendation, January 2015 http://www.w3.org/TR/eventsource Libcurl always call the “write callback” when it receives HTTP response and stores the data in the structure provided by the user

Re: How to fix libcurl error(easy handled already used in multi handle) ?

2019-02-13 Thread kishore koney via curl-library
dled already used in multi handle) when I > called > > curl_easy_init() followed by curl_easy_perform ? Which of these API is > adding > > handles twice to ??? > > > > thanks, krishna > > > > On Mon, Feb 11, 2019 at 10:48 AM Daniel Stenberg wrote: > > > >

Re: How to fix libcurl error(easy handled already used in multi handle) ?

2019-02-13 Thread Dave Reisner via curl-library
On Mon, 11 Feb 2019, kishore koney via curl-library wrote: > > > I am using *libcurl(version = 7.61.1*]*)* easy API for downloading http > > url/files(as byte-range chunks). I am getting libcurl_easy_perform() > return > > error_code(*2*) and errorBuffer((*e

Re: How to fix libcurl error(easy handled already used in multi handle) ?

2019-02-12 Thread kishore koney via curl-library
n I called curl_easy_init() followed by curl_easy_perform ? Which of these API is adding handles twice to ??? thanks, krishna On Mon, Feb 11, 2019 at 10:48 AM Daniel Stenberg wrote: > On Mon, 11 Feb 2019, kishore koney via curl-library wrote: > > > I am using *libcurl(version = 7.61.1*]*)* easy AP

Re: How to fix libcurl error(easy handled already used in multi handle) ?

2019-02-11 Thread Daniel Stenberg via curl-library
On Mon, 11 Feb 2019, kishore koney via curl-library wrote: I am using *libcurl(version = 7.61.1*]*)* easy API for downloading http url/files(as byte-range chunks). I am getting libcurl_easy_perform() return error_code(*2*) and errorBuffer((*easy handled already used in multi handle*). I am

How to fix libcurl error(easy handled already used in multi handle) ?

2019-02-11 Thread kishore koney via curl-library
Hi, I am using *libcurl(version = 7.61.1*]*)* easy API for downloading http url/files(as byte-range chunks). I am getting libcurl_easy_perform() return error_code(*2*) and errorBuffer((*easy handled already used in multi handle*). I am opening 10 concurrent active libcurl easy handles as part

How to fix libcurl error(easy handled already used in multi handle) ?

2019-02-08 Thread kishore koney via curl-library
> Hi, > > I am using *libcurl(version = 7.61.1*]*)* easy API for downloading http > url/files(as byte-range chunks). I am getting libcurl_easy_perform() return > error_code(*2*) and errorBuffer((*easy handled already used in multi > handle*). > I am opening 10 concurren

Re: libcurl + apache module (error:58)

2019-01-20 Thread Daniel Stenberg via curl-library
On Wed, 16 Jan 2019, Sumonto Ghosh via curl-library wrote: If I execute the same options in standalone test it work fine, That would suggest that your code is thus doing the right thing libcurl wise, but something makes it not work when executed as an apache module. I'm not convinced

libcurl + apache module (error:58)

2019-01-16 Thread Sumonto Ghosh via curl-library
Hi, Server version: Apache/2.4.29 (Ubuntu) Server built: 2018-10-10T18:59:25 curl_easy_setopt(curl, CURLOPT_SSLCERT, "/AAA/abc.xyz.pem") curl_easy_setopt(curl, CURLOPT_SSLKEY, "/AAA/keyfile") curl_easy_setopt(curl, CURLOPT_KEYPASSWD, ""); curl_easy_setopt(curl, CURLOPT_URL, ...) res =

libcurl + apache2 module

2019-01-14 Thread Sumonto Ghosh via curl-library
Hi, Server version: Apache/2.4.29 (Ubuntu) Server built: 2018-10-10T18:59:25 curl_easy_setopt(curl, CURLOPT_SSLCERT, "/AAA/abc.xyz.pem") curl_easy_setopt(curl, CURLOPT_SSLKEY, "/AAA/keyfile") curl_easy_setopt(curl, CURLOPT_KEYPASSWD, ""); curl_easy_setopt(curl, CURLOPT_URL, ...) res =

Re: Fwd: Unable to copy files to windows shared drive using libCurl and FILE protocol

2019-01-04 Thread Krishna Chaithanya B via curl-library
These are my callback functions. static size_t read_callback(void *ptr, size_t size, size_t nmemb, void *stream) { curl_off_t nread; /* in real-world cases, this would probably get this data differently as this fread() stuff is exactly what the library already would do by

Re: Fwd: Unable to copy files to windows shared drive using libCurl and FILE protocol

2019-01-04 Thread Daniel Stenberg via curl-library
On Fri, 4 Jan 2019, Krishna Chaithanya B via curl-library wrote: I am seeing CURLE_WRITE_ERROR as return code, so I tried to add a writeCallback but still there is no use. Since you didn't show your write callback I can only guess, and I guess your write callback returns the wrong return

Fwd: Unable to copy files to windows shared drive using libCurl and FILE protocol

2019-01-04 Thread Krishna Chaithanya B via curl-library
On Fri, Jan 4, 2019 at 5:36 AM Daniel Stenberg wrote: > On Thu, 3 Jan 2019, Krishna Chaithanya B via curl-library wrote: > > > I am using the curl-7.62.0 built for VC17 X64 machine to develop a file > > uploader utility. The file uploader uploads the file to a network drive. > > ... > > > Now I

Re: Unable to copy files to windows shared drive using libCurl and FILE protocol

2019-01-03 Thread Daniel Stenberg via curl-library
On Thu, 3 Jan 2019, Krishna Chaithanya B via curl-library wrote: I am using the curl-7.62.0 built for VC17 X64 machine to develop a file uploader utility. The file uploader uploads the file to a network drive. ... Now I want to achieve the same programmatically and I am writing my component

Re: rpmbuild of curl/libcurl 7.63.0 fails on Mageia Linux v7 x86-64 due to make test link problem

2019-01-03 Thread Daniel Stenberg via curl-library
On Tue, 1 Jan 2019, Isaac Boukris via curl-library wrote: The usage of curl_msnprintf / msnprintf was introduced in commit dcd6f81025 (it was snprintf before) but I'm not sure this usage is correct as this lib does not link against libcurl (rather the other way round), perhaps this part

Unable to copy files to windows shared drive using libCurl and FILE protocol

2019-01-03 Thread Krishna Chaithanya B via curl-library
I am using the curl-7.62.0 built for VC17 X64 machine to develop a file uploader utility. The file uploader uploads the file to a network drive. The curl build directory has a .exe and a .dll files I am able to run this command from windows shell and was able to upload the file to the network

Re: rpmbuild of curl/libcurl 7.63.0 fails on Mageia Linux v7 x86-64 due to make test link problem

2019-01-01 Thread Shlomi Fish via curl-library
pi implementation we use for testing by > pre-loading it via LD_PRELOAD. > > The usage of curl_msnprintf / msnprintf was introduced in commit > dcd6f81025 (it was snprintf before) but I'm not sure this usage is > correct as this lib does not link against libcurl (rather the o

Re: rpmbuild of curl/libcurl 7.63.0 fails on Mageia Linux v7 x86-64 due to make test link problem

2019-01-01 Thread Isaac Boukris via curl-library
ry > > > > How can it be fixed? > > Fix from Fedora: > https://src.fedoraproject.org/rpms/curl/blob/c91c27bce90e913a6fdfd4cb42172496d0e264a8/f/0105-curl-7.63.0-libstubgss-ldadd.patch Looks like this patch links libstubgss against libcurl which is a bit counter intuitive sinc

Re: rpmbuild of curl/libcurl 7.63.0 fails on Mageia Linux v7 x86-64 due to make test link problem

2019-01-01 Thread Shlomi Fish via curl-library
On Tue, 1 Jan 2019 12:14:11 + Paul Howarth via curl-library wrote: > On Tue, 1 Jan 2019 11:28:55 +0200 > Shlomi Fish via curl-library wrote: > > > Hi all and happy new year, > > > > when trying to build the curl 7.63.0 SRPM on Mageia Linux v7 x86-64, > > I get this: > > > > *

Re: rpmbuild of curl/libcurl 7.63.0 fails on Mageia Linux v7 x86-64 due to make test link problem

2019-01-01 Thread Paul Howarth via curl-library
On Tue, 1 Jan 2019 11:28:55 +0200 Shlomi Fish via curl-library wrote: > Hi all and happy new year, > > when trying to build the curl 7.63.0 SRPM on Mageia Linux v7 x86-64, > I get this: > > * https://www.shlomifish.org/Files/files/text/curl.bm.txt > > *

Re: rpmbuild of curl/libcurl 7.63.0 fails on Mageia Linux v7 x86-64 due to make test link problem

2019-01-01 Thread Isaac Boukris via curl-library
in commit dcd6f81025 (it was snprintf before) but I'm not sure this usage is correct as this lib does not link against libcurl (rather the other way round), perhaps this part should be reverted? I still don't understand why it fails to build, as Linux usually does not resolve symbols when building a sha

rpmbuild of curl/libcurl 7.63.0 fails on Mageia Linux v7 x86-64 due to make test link problem

2019-01-01 Thread Shlomi Fish via curl-library
Hi all and happy new year, when trying to build the curl 7.63.0 SRPM on Mageia Linux v7 x86-64, I get this: * https://www.shlomifish.org/Files/files/text/curl.bm.txt * https://www.shlomifish.org/Files/files/text/log.curl.txt This is in "make test". Quoting from it: <<< CC

Re: SIGPIPE when using libcurl with OpenSSL on Fedora 28

2018-12-20 Thread Daniel Stenberg via curl-library
On Thu, 20 Dec 2018, Samuel Hurst wrote: If you're only using curl in a single thread then you're fine to use CURLOPT_NOSIGNAL I think. Unless you need SIGPIPE (filtering) for something else. Just to clarify, would building easy handles in another thread cause any issues? I'm only doing the

Re: Serverside Streaming connection using libcurl

2018-12-20 Thread Daniel Stenberg via curl-library
On Thu, 20 Dec 2018, Prashant Shubham wrote: I can understand what you are suggesting is long-polling but what I want to implement is Server sent events(https://www.smashingmagazine.com/2018/02/sse-websockets-data-flow-http2/) . I guess libcurl doesn't have support for that. libcurl

Re: Serverside Streaming connection using libcurl

2018-12-20 Thread Prashant Shubham via curl-library
niel.haxx.se > I can understand what you are suggesting is long-polling but what I want to implement is Server sent events(https://www.smashingmagazine.com/2018/02/sse-websockets-data-flow-http2/) . I guess libcurl doesn't have support for that. --- Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library Etiquette: https://curl.haxx.se/mail/etiquette.html

Re: Serverside Streaming connection using libcurl

2018-12-20 Thread Daniel Stenberg via curl-library
On Mon, 17 Dec 2018, Prashant Shubham wrote: If you want the client to get the data as soon as it gets available then you should probably just make a request with curl and not have a timeout. Then curl will just sit there waiting for the transfer to start or complete, until the server does

Re: SIGPIPE when using libcurl with OpenSSL on Fedora 28

2018-12-20 Thread Samuel Hurst via curl-library
On 20/12/2018 07:42, Daniel Stenberg wrote: > On Wed, 19 Dec 2018, Samuel Hurst via curl-library wrote: > >> I was not aware that this was a requirement on multi-threaded >> applications. The CURLOPT_NOSIGNAL API documentation [1] does not >> reference this requirement at all, which is why I've

Re: SIGPIPE when using libcurl with OpenSSL on Fedora 28

2018-12-19 Thread Daniel Stenberg via curl-library
On Wed, 19 Dec 2018, Samuel Hurst via curl-library wrote: I was not aware that this was a requirement on multi-threaded applications. The CURLOPT_NOSIGNAL API documentation [1] does not reference this requirement at all, which is why I've missed it. I should clarify in there! My application

Re: SIGPIPE when using libcurl with OpenSSL on Fedora 28

2018-12-19 Thread Patrick Schlangen via curl-library
Hi Samuel, maybe slightly OT, but you might also want to make sure to not cause any SIGPIPEs from your other threads or main thread, since it is undetermined which thread will handle an incoming signal, except if you specifically make arrangements. See also

Re: SIGPIPE when using libcurl with OpenSSL on Fedora 28

2018-12-19 Thread Samuel Hurst via curl-library
Hi Tim, On 19/12/2018 15:29, Tim Rühsen wrote: > Maybe this is relevant !? > > commit 1b8ed4ad2318765665fef636a3d66b89fa4d8da6 > Author: Daniel Stenberg > Date: Tue Aug 21 14:52:17 2018 +0200 > > libcurl-thread.3: expand somewhat on the NO_SIGNAL motivation &g

Re: SIGPIPE when using libcurl with OpenSSL on Fedora 28

2018-12-19 Thread Tim Rühsen via curl-library
my app hasn't made a > HTTPS request to a given server for a while, and libcurl is going > through and cleaning up dead connections, it dies with SIGPIPE: > > (gdb) bt > #0 __libc_write (nbytes=31, buf=0x7fffcc461513, fd=24) at > ../sysdeps/unix/sysv/linux/write.c:27 > #1 __libc_wri

SIGPIPE when using libcurl with OpenSSL on Fedora 28

2018-12-19 Thread Samuel Hurst via curl-library
Hi All, I've been having some very odd behaviour on some of my systems recently, and it's left me very confused as to what's going on. It's not always reproducible, but when it does happen it's after my app hasn't made a HTTPS request to a given server for a while, and libcurl is going through

Re: Libcurl para windows 7 64

2018-12-17 Thread Daniel Stenberg via curl-library
On Mon, 17 Dec 2018, Fischel via curl-library wrote: You can not do a loadlibrary on Win 7 64 bits of the latest version of the libcurl.dll .. Why not, what happens? How did you build the DLL? If you didn't build it yourself, where/whom did you get it from? -- / daniel.haxx.se

Libcurl para windows 7 64

2018-12-17 Thread Fischel via curl-library
Hello: You can not do a loadlibrary on Win 7 64 bits of the latest version of the libcurl.dll .. I would appreciate any help. regards --- Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library Etiquette:

Re: Serverside Streaming connection using libcurl

2018-12-17 Thread Prashant Shubham via curl-library
t; client will always keep listening for that response on that channel either >> >> there is data coming or not. Something similar to async push from server >> to >> client. >> >> Is there any API in libcurl to implement this? > > If you want the client to get the data

Re: Serverside Streaming connection using libcurl

2018-12-15 Thread Daniel Stenberg via curl-library
or not. Something similar to async push from server to client. Is there any API in libcurl to implement this? If you want the client to get the data as soon as it gets available then you should probably just make a request with curl and not have a timeout. Then curl will just sit

Re: Serverside Streaming connection using libcurl

2018-12-14 Thread Prashant Shubham via curl-library
from server to client. Is there any API in libcurl to implement this? Thanks, Prashant --- Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library Etiquette: https://curl.haxx.se/mail/etiquette.html

Re: Serverside Streaming connection using libcurl

2018-12-13 Thread Daniel Stenberg via curl-library
On Thu, 13 Dec 2018, Prashant Shubham via curl-library wrote: Server will send response/data whenever server is available with the data. http2 supports streaming I guess there must be some libcurl apis which I can use to implement this functionality. Can you please guide? I don't understand

Re: Serverside Streaming connection using libcurl

2018-12-13 Thread silvioprog via curl-library
ts.gnu.org/archive/html/libmicrohttpd/2016-09/msg2.html Both libraries uses libcURL in their examples. Cheers On Thu, Dec 13, 2018 at 10:35 AM Prashant Shubham via curl-library < curl-library@cool.haxx.se> wrote: > Hi All, > > I want to create a streaming connection from client

Serverside Streaming connection using libcurl

2018-12-13 Thread Prashant Shubham via curl-library
Hi All, I want to create a streaming connection from client to server using libcurl. The client will once connect to server and keep listening for responses from the server. Stream teardown can happen when client requests. Example: 1. Connect to server 2. Keep listening for responses to server

Re: Compiling libcurl with HTTP/2 support in OpenWrt

2018-12-11 Thread Daniel Stenberg via curl-library
On Mon, 10 Dec 2018, Connor Ruggles via curl-library wrote: I'm compiling OpenWrt with their imagebuilder and including libcurl, with the HTTP/2 option checked. So I'm covering my bases there, and I have validated it is attempting at least to use the nghttp2 library because when I remove

Compiling libcurl with HTTP/2 support in OpenWrt

2018-12-10 Thread Connor Ruggles via curl-library
Hello, I'm hoping this doesn't get ignored as not relevant because this isn't only with libcurl, but also OpenWrt, but I'm just trying to figure out where my problem actually lies. I'm compiling OpenWrt with their imagebuilder and including libcurl, with the HTTP/2 option checked. So I'm

Re: Behaviour with CURLOPT_FRESH_CONNECT when libcurl performs a request internally

2018-12-03 Thread Daniel Stenberg via curl-library
On Thu, 29 Nov 2018, John Smith via curl-library wrote: - degraded mode where CURLOPT_FRESH_CONNECT is enabled on every HTTP request I'm having an issue in this mode when the server responds with "HTTP/1.1 401 Unauthorized" to a GET request I just performed. In that cas

Behaviour with CURLOPT_FRESH_CONNECT when libcurl performs a request internally

2018-11-29 Thread John Smith via curl-library
connection (I've noticed this can happen because e.g. the server terminated a connection but for some reason we didn't receive the FIN packet). I'm having an issue in this mode when the server responds with "HTTP/1.1 401 Unauthorized" to a GET request I just performed. In that cas

Re: error= 6 (libcurl error) detail= 51 (SSL peer certificate or SSH remote key was not OK)

2018-11-17 Thread Daniel Stenberg via curl-library
On Fri, 16 Nov 2018, Tapasvi Soni via curl-library wrote: I want to know that multiple wildcards(*) in leftmost label of common name of wildcard certificate are supported by curl or not. Because validation is failing from libcurl for this certificate. It seems it does not! I added a simple

Re: libcurl segmentation error on arm-none-linux-gnueabi multithread

2018-11-17 Thread Daniel Stenberg via curl-library
On Thu, 15 Nov 2018, ang nickolas via curl-library wrote: i am unable to run the following example on https://curl.haxx.se/libcurl/c/threaded-ssl.html on an arm-none-linux-gnueabi with multithread. No idea. If you gdb it and do a stack trace from the crash, does it reveal anything

error= 6 (libcurl error) detail= 51 (SSL peer certificate or SSH remote key was not OK)

2018-11-16 Thread Tapasvi Soni via curl-library
Hello, I am new to cURL and I came across a scenario where I have self signed wildcard certificate with common name as : 'oe*de*2.bedford.progress.com' (Wildcard certificate with more than one * in leftmost label of common name.) I am getting error= 6 (libcurl error) detail= 51 (SSL peer

libcurl segmentation error on arm-none-linux-gnueabi multithread

2018-11-15 Thread ang nickolas via curl-library
hi, i am unable to run the following example on https://curl.haxx.se/libcurl/c/threaded-ssl.html on an arm-none-linux-gnueabi with multithread. it works fine if its only on a single thread. i am using: - ubuntu 14.04 cross compile using arm-none-linux-gnueabi-g++ - openssl 1.0.1u - libcurl

RE: http2: libcurl keeps reading from connection after WRITEFUNCTION has requested pause

2018-11-05 Thread Sangamkar, Dheeraj via curl-library
> > On Sat, 3 Nov 2018, Sangamkar, Dheeraj via curl-library wrote: > > > libcurl version: 7.52.1-5+deb9u6 > > We have done plenty of fixes since then, including a few related to > pause/unpause. > > > Libcurl stops calling the WRITEFUNCTION after pause is requ

<    1   2   3   4   5   6   7   8   9   10   >