Re: I'm now the owner of curl.se

2020-11-04 Thread Daniel Stenberg via curl-library
On Mon, 2 Nov 2020, Daniel Stenberg via curl-library wrote: I'll be back with more info soon when we can consider the new domain and address to be the new home. Welcome to curl.se - our new home. https://curl.se and https://www.curl.se/ work equally well. The old name of course also works

HSTS your curl

2020-11-03 Thread Daniel Stenberg via curl-library
Hi team, I just landed the experiemtal HSTS support PR and blogged about it: https://daniel.haxx.se/blog/2020/11/03/hsts-your-curl/ -- / daniel.haxx.se | Commercial curl support up to 24x7 is available! | Private help, bug fixes, support, ports, new features |

Re: OpenSSH upstream is discussing deprecation of SCP protocol

2020-11-02 Thread Daniel Stenberg via curl-library
On Mon, 2 Nov 2020, Kamil Dudka via curl-library wrote: We should probably consider marking the SCP protocol deprecated also in curl at some point to avoid surprises on user's side when the server part starts to be decommissioned. Agreed. Let's see what happens in that project and take

I'm now the owner of curl.se

2020-11-02 Thread Daniel Stenberg via curl-library
Hello friends, Since a few days back, I'm the owner of the domain curl.se and I plan to switch over the curl web site to use this soon. As it's not recommended to use CNAMEs in the second-level domain part (for "curl.se") I'm currently aiming for moving the site to "www.curl.se" (I want to

Re: server transition today

2020-10-30 Thread Daniel Stenberg via curl-library
On Fri, 23 Oct 2020, Daniel Stenberg via curl-library wrote: Starting in a few minutes, the curl website move from one server to another Following up: in early November 2020 we will also move the server on 'cool.haxx.se' to a new host and IP address. It is mostly used for running mailing

Re: server transition today

2020-10-30 Thread Daniel Stenberg via curl-library
On Fri, 30 Oct 2020, Ray Satiro via curl-library wrote: The archival process for mail seems to have stopped. For example curl-library october archive [1] stopped archiving on the 19th. Oops. I think it was still storing the emails fine and it was just the conversion to HTML that has

Re: curl_easy_recv and SIGPIPE

2020-10-27 Thread Daniel Stenberg via curl-library
On Tue, 27 Oct 2020, Tomalak Geret'kal via curl-library wrote: I don't think there's anything to do here in libcurl, beyond confirming (or denying!) that sigpipe_ignore is /supposed/ to be a no-op if neither OpenSSL or Mbed TLS is in use, a fact I discovered while looking into this other

Re: curl_easy_recv and SIGPIPE

2020-10-27 Thread Daniel Stenberg via curl-library
On Tue, 27 Oct 2020, Tomalak Geret'kal via curl-library wrote: What did you see? From where is the SIGPIPE and was SO_NOSIGPIPE set on that socket? I've said already: from the recv call in curl_easy_recv. And yes it was. Curious - in two parts. 1. SIGPIPE is typically generated when

Re: curl_easy_recv and SIGPIPE

2020-10-26 Thread Daniel Stenberg via curl-library
On Mon, 26 Oct 2020, Tomalak Geret'kal via curl-library wrote: The question is still: why do you get a SIGPIPE? I'm just telling you what I've seen Daniel. What did you see? From where is the SIGPIPE and was SO_NOSIGPIPE set on that socket? -- / daniel.haxx.se | Commercial curl

Re: curl_easy_recv and SIGPIPE

2020-10-26 Thread Daniel Stenberg via curl-library
On Mon, 26 Oct 2020, Tomalak Geret'kal via curl-library wrote: I don't think so, since it uses callbacks to our code for the actual sending to the socket and we set the socket to not cause sigpipes. At least that's the intention. That only helps you if the socket still exists. The socket

Re: curl_easy_recv and SIGPIPE

2020-10-26 Thread Daniel Stenberg via curl-library
On Mon, 26 Oct 2020, Tomalak Geret'kal via curl-library wrote: Based on the `#if defined`s in sigpipe.h, from what I can tell, curl doesn't protect anything from SIGPIPE unless OpenSSL or MBEDTLS are in use. I don't know whether your intention was to protect against SIGPIPE more broadly or

Re: curl_easy_recv and SIGPIPE

2020-10-26 Thread Daniel Stenberg via curl-library
On Mon, 26 Oct 2020, Tomalak Geret'kal via curl-library wrote: On closer examination, sigpipe_ignore is a no-op unless USE_OPENSSL or USE_MBEDTLS are set. Are you saying you're not using any of them? So it seems the call in curl_easy_perform is only really intended to eat up pipes raised by

Re: curl_easy_recv and SIGPIPE

2020-10-26 Thread Daniel Stenberg via curl-library
On Mon, 26 Oct 2020, Tomalak Geret'kal via curl-library wrote: curl_easy_perform temporarily ignores /SIGPIPE/. Why doesn't curl_easy_recv? Should it? I can't remember that this is a deliberate decision. I think we just haven't done the necessary work. Should be easy to fix. Are you up to

Re: Better resolver callbacks.

2020-10-23 Thread Daniel Stenberg via curl-library
On Fri, 23 Oct 2020, John Wiseman via curl-library wrote: It's the number of max concurrent dns queries. Without such limit, my crawler will easyily blow up the dns server of my home network with almost 1 thousand threads doing dns query on just several names. Ouch. Yes, we clearly need a

server transition today

2020-10-23 Thread Daniel Stenberg via curl-library
Hi, Starting in a few minutes, the curl website move from one server to another (we are moving off our very old server into a new VPS). Ideally this move will not be visible to users at all. If you spot glitches on the site, please have patience but if they remain after 24 hours or so, do

Re: [Hint]: curl lib threads

2020-10-22 Thread Daniel Stenberg via curl-library
On Mon, 19 Oct 2020, David Caul via curl-library wrote: Can we check how many thread a curl library is using. No, you can't - there's no such counter even internally. But libcurl might use up to one extra thread per concurrent name resolve if built with the threaded name-resolver. -- /

Re: libcurl hang (v2)

2020-10-22 Thread Daniel Stenberg via curl-library
On Wed, 21 Oct 2020, MS via curl-library wrote: I have discovered the problem only occurs when using libevent2 to drive the multi interface. There is no issue using the easy interface directly, nor using `multi_poll'. ... then the problem is probably in your event-based logic! -- /

alt-svc: enable by default

2020-10-21 Thread Daniel Stenberg via curl-library
Hello, Yes, it's time for a final review and chance to comment on this before I merge! https://github.com/curl/curl/pull/5868 -- / daniel.haxx.se | Commercial curl support up to 24x7 is available! | Private help, bug fixes, support, ports, new features | https://www.wolfssl.com/contact/

Re: Thoughts on HSTS

2020-10-21 Thread Daniel Stenberg via curl-library
On Mon, 14 Sep 2020, Daniel Stenberg via curl-library wrote: https://github.com/curl/curl/pull/5896 My thinking is to get this merged in the *next* feature window, thus probably in the 7.74.0 release. The time has come. I will merge this "soon". -- / daniel.haxx.se | Comme

Re: how to stop curl_easy_perform() from another thread

2020-10-19 Thread Daniel Stenberg via curl-library
On Fri, 16 Oct 2020, Winnie Poon via curl-library wrote: * is it still unsafe to use the same handle in more than 1 thread? This is a documented fact and is repeated fairly frequently: https://curl.haxx.se/libcurl/c/threadsafe.html * is the progress callback the only proper way to

feature window: open

2020-10-18 Thread Daniel Stenberg via curl-library
Hi friends, The 7.73.0 release has not raised any alarm bells or caused any panics in the issue tracker. I hereby declare the feature window open again! -- / daniel.haxx.se | Commercial curl support up to 24x7 is available! | Private help, bug fixes, support, ports, new

Re: libcurl for QNX 7.0.0 ( ARM64 )

2020-10-16 Thread Daniel Stenberg via curl-library
On Fri, 16 Oct 2020, Thomas Barth via curl-library wrote: For this task I need the curl library for QNX. And here starts the . I've been told many times that curl comes with QNX or has been ported to QNX before. I presume that you already looked for that and you didn't find any existing

Re: libcurl configuration for sftp

2020-10-16 Thread Daniel Stenberg via curl-library
On Fri, 16 Oct 2020, Michael Loutris via curl-library wrote: The information for CURLOPT_URL states that it is for retrieving, so how do I specify the write path? It is the URL you want to "work with". That's either receive or upload. -- / daniel.haxx.se | Commercial curl support up to

Re: Better resolver callbacks.

2020-10-16 Thread Daniel Stenberg via curl-library
On Thu, 15 Oct 2020, John Wiseman via curl-library wrote: I'm trying to avoid flooding the dns resolver when using multi interface. I know it's on the TODO list, but I think it may be doable from user side with callbacks. What exactly do you want to limit? The number of names to resolve

Re: Build fails after upgrading from 7.72 to 7.73

2020-10-15 Thread Daniel Stenberg via curl-library
On Thu, 15 Oct 2020, Firefox OS via curl-library wrote: The issue goes away if I delete "--disable-tls-srp". Confirmed. Fix: https://github.com/curl/curl/pull/6094 It also made me spot another compiler warning that I fix here: https://github.com/curl/curl/pull/6095 -- / daniel.haxx.se

Re: Should we CURL_SOCKET_TIMEOUT after curl_multi_add_handle?

2020-10-15 Thread Daniel Stenberg via curl-library
On Wed, 14 Oct 2020, Jeff Mears via curl-library wrote: we're supposed to immediately call curl_multi_socket_action with CURL_SOCKET_TIMEOUT after starting a request. * Is it actually necessary to do this? No, it's not strictly necessary but not doing so might delay the start of that

Re: Getting Redefinition Error

2020-10-14 Thread Daniel Stenberg via curl-library
On Wed, 14 Oct 2020, T V LIJIN (EXT) via curl-library wrote: You are still top-posting which makes it really annoying for everyone to follow this thread. 1. Is it possible to use Tiny-curl with Mbedtls instead of Wolfssl.? Possible, sure. tiny-curl is just a patch set on top of the

[RELEASE] curl 7.73.0

2020-10-14 Thread Daniel Stenberg via curl-library
io on github, Antarpreet Singh, beckenc on github, Chris Paulson-Ellis, Christian Weisgerber, COFFEETALES on github, Dan Fandrich, Daniel Gustafsson, Daniel Stenberg, Dan Kenigsberg, Diven Qi, Don J Olmstead, Duncan Wilcox, Eli Schwartz, Emil Engler, Eric Curtin, Frederik Wedel-Heinen,

Re: Getting Redefinition Error

2020-10-13 Thread Daniel Stenberg via curl-library
On Tue, 13 Oct 2020, T V LIJIN (EXT) via curl-library wrote: Since I'm new to this and want Curl to be ported for RTOS , is there any porting manual / guide available with you , that can be shared , so that I can follow the steps mentioned in it. There is none. I wouldn't really know how to

Re: Getting Redefinition Error

2020-10-13 Thread Daniel Stenberg via curl-library
On Tue, 13 Oct 2020, T V LIJIN (EXT) wrote: (please don't top-post) The version of Libcurl I'm using is curl-7.72.0 I'm trying to build this for windows-Visual studio 19 by using just the source and header files because I don't want to build it as .so or lib dll file : I have attached the

Re: Getting Redefinition Error

2020-10-13 Thread Daniel Stenberg via curl-library
On Tue, 13 Oct 2020, T V LIJIN (EXT) via curl-users wrote: Could you please help me with this issue : I'm getting a redefinition error while building libcurl from source without using dll. How did you (try to) build it? What version? -- / daniel.haxx.se | Commercial curl support up to

Re: C ++ program using libcurl sends message and receives reply, but the message is sent twice.

2020-10-12 Thread Daniel Stenberg via curl-library
On Mon, 12 Oct 2020, José Fernández via curl-library wrote: This program is capable of sending the message to the server and of collecting the response from it, but as it is written, it sends the message twice to the server curl_easy_perform() performs a transfer. You call it twice. That

Help us with CI builds on Appveyor using cmake!

2020-10-10 Thread Daniel Stenberg via curl-library
Hi friends, After a recent change to the cmake files, we have a problem in curl: the Appveyor CI builds fail to run the test suite - because the test suite isn't built. I've tried a few ways to fix this but none has worked. The problem remains. I would appreciate if someone with more cmake

Re: Phantom socket with threaded resolver

2020-10-10 Thread Daniel Stenberg via curl-library
On Fri, 9 Oct 2020, Sean Miller via curl-library wrote: Maybe I'm dense, but how can I tell that I should treat this invocation of CURLMOPT_SOCKETFUNCTION as a signal that DNS resolution is done? You can't and you shouldn't. libcurl doesn't tell the application when the DNS resolution is

Re: Phantom socket with threaded resolver

2020-10-09 Thread Daniel Stenberg via curl-library
On Fri, 9 Oct 2020, Sean Miller via curl-library wrote: (This might be a varation of this issue: https://github.com/curl/curl/issues/5747 ) In response, libcurl appears to create a socket for DNS resolution without asking for it via CURLOPT_OPENSOCKETFUNCTION. That's correct, because it

Re: Problem setting content-type header when connecting to Microsoft Exchange

2020-10-09 Thread Daniel Stenberg via curl-library
On Wed, 7 Oct 2020, Jeffrey McKay via curl-library wrote: I have never set the content-type to "application/x-www-form-urlencoded". That's the default content-type libcurl will use when you set CURLOPT_POSTFIELDS - unless you override it. -- / daniel.haxx.se | Commercial curl support up

Hyper as a HTTP backend

2020-10-04 Thread Daniel Stenberg via curl-library
Hi friends, I've taken on a project to make curl able to use Hyper as an optional HTTP backend in curl. Hyper is a HTTP library written in Rust. Hyper has not shipped a C API before so the work really started with me asking for one [1] and joining their effort in designing an API that can

Re: Pipelining in HTTP 1.1

2020-10-01 Thread Daniel Stenberg via curl-library
On Thu, 1 Oct 2020, Dorit Mari via curl-library wrote: I know that support for pipelining in HTTP 1.1 was removed (https://github.com/curl/curl/commit/2f44e94efb3df8e50bb2ddbc4ec6b569a6424517). In our application, we need to use pipelining in HTTP 1.1, so we are trying to restore and fix the

Re: Curl upgrade from 7.65.1 to 7.70.0 causing performance degradation

2020-09-25 Thread Daniel Stenberg via curl-library
On Fri, 25 Sep 2020, Daniel Stenberg via curl-library wrote: I converted it into a "real" PR and submitted it here: https://github.com/curl/curl/pull/6013 Reading the code a little more and thinking further, *maybe* this is actually a more appropriate fix, what do you say?

Re: Curl upgrade from 7.65.1 to 7.70.0 causing performance degradation

2020-09-25 Thread Daniel Stenberg via curl-library
On Thu, 24 Sep 2020, Kunal Chandarana wrote: Shouldn't the reading from the socket be forced only if the buffer is empty? I made the following change (screenshot given below) in the 7.70.0 version of the code and it eliminates the performance degradation issue. What do you think about this

Re: Couldn't connect to host (err: 7)

2020-09-21 Thread Daniel Stenberg via curl-library
On Mon, 21 Sep 2020, Hadi Rezaee wrote: For example in a happy-scenario (no failures - err no 7) and when I reduce the REST calls per second to 50 from the client side. I only see 6~8 established connections (netstat -an | grep 8880) Which is fine. If each request takes 100ms you should be

Re: Certificates from Windows Store

2020-09-21 Thread Daniel Stenberg via curl-library
On Mon, 21 Sep 2020, David Weisgerber via curl-library wrote: this might be a little bit off-topic but at least in my case it touches the curl-library: I am using the openssl-built curl library in a application under windows and in order to get it use the latest certificates, I add the

Re: time to remove Visual Studio project files?

2020-09-21 Thread Daniel Stenberg via curl-library
On Sat, 5 Sep 2020, Daniel Stenberg via curl-library wrote: I'd like to get a better feel for the need to ship the visual studio project files we currently host in the project/ directory. It seems these files are being used, but so far I don't think I've seen any compelling and strong reason

Re: Couldn't connect to host (err: 7)

2020-09-21 Thread Daniel Stenberg via curl-library
On Mon, 21 Sep 2020, Hadi Rezaee wrote: Then threads will look into the list to find a curl-handler that its mutex is not locked, and then use the free curl-handler to submit the request (perform()) And finally when we're done with a handler, we'd "call curl_easy_reset". That doesn't quite

Re: Couldn't connect to host (err: 7)

2020-09-20 Thread Daniel Stenberg via curl-library
On Sun, 20 Sep 2020, Hadi Rezaee via curl-library wrote: Still we're not sure what is bottle-neck here. Is it client+libcurl or webserver or even machine. There's just not enough details for us to tell. If you keep doing requests against the same machine very frequently, why does it create

At 15,000 commits

2020-09-18 Thread Daniel Stenberg via curl-library
Hello! It's a meaningless number, but I just reached 15,000 commits in the curl master branch today and I figured it could be fun to celebrate so I blogged a little about it: https://daniel.haxx.se/blog/2020/09/18/my-first-15000-curl-commits/ -- / daniel.haxx.se | Commercial curl

Re: Curl upgrade from 7.65.1 to 7.70.0 causing performance degradation

2020-09-16 Thread Daniel Stenberg via curl-library
On Mon, 14 Sep 2020, Kunal Chandarana via curl-library wrote: I further investigated the issue. As I mentioned earlier, we use the connection pause/unpause feature. If the connection is paused then the library uses a temporary buffer (pausewrite function

Feature window is closed

2020-09-16 Thread Daniel Stenberg via curl-library
Hello! As the subject says, we've now closed the feature window [1] for this cycle. We managed to merge no less than 9 new changes for the pending release [2]. Now, we will only merge bug-fixes into master for the rest of the period until we ship 7.73.0, planned to happen on October 14th.

Re: Failed sending data to the peer in 7.72.0

2020-09-16 Thread Daniel Stenberg via curl-library
On Mon, 14 Sep 2020, James Brown via curl-library wrote: Thanks for digging deep into this issue! I went through commits on master that aren't in 7.72.0 and came across 728f8d3bd , which looks promising. It says it

Re: GET http request

2020-09-15 Thread Daniel Stenberg via curl-library
On Tue, 15 Sep 2020, Dewancker, Bart wrote: I have located the problem we faced with curl version 7.64 on Debian Buster and not with curl version 7.52 on Debian Stretch. Along with libcurl3, which comes with version 7.52, on Stretch we use curlpp (version 0.8.1-2), a C ++ wrapper for the

Re: Thoughts on HSTS

2020-09-14 Thread Daniel Stenberg via curl-library
On Mon, 31 Aug 2020, Daniel Stenberg via curl-library wrote: I've started to work on an implementation for curl and while doing so, I've put down some ideas in the wiki on how to interface this from curl and libcurl. I'm interested in feedback: https://github.com/curl/curl/wiki/HSTS Just

Re: Is the feature window open?

2020-09-09 Thread Daniel Stenberg via curl-library
On Wed, 9 Sep 2020, Emil Engler via curl-library wrote: Would be good if this could be included into the topic of the #curl IRC channel! We'd need a bot to update it when the status changes to make it work. The topic in the IRC channel is so often out of date and regularly mentions old

Re: Is the feature window open?

2020-09-09 Thread Daniel Stenberg via curl-library
On Wed, 9 Sep 2020, FirefoxOS via curl-library wrote: What do you think about adding at least good old alt="..." attribute to that ? IMHO that would help reaching everyone. Good point. Will fix! -- / daniel.haxx.se | Commercial curl support up to 24x7 is available! |

Is the feature window open?

2020-09-09 Thread Daniel Stenberg via curl-library
https://curl.haxx.se/dev/feature-window.html Should make it clear for everyone! (Under the hood we control that the visibility of that sign with this define: https://github.com/curl/curl-www/blob/master/dev/featurewindow.t ) -- / daniel.haxx.se | Commercial curl support up to 24x7 is

Re: FW: GET http request

2020-09-08 Thread Daniel Stenberg via curl-library
On Tue, 8 Sep 2020, Dewancker, Bart via curl-library wrote: As I understand it, the first request in the WireShark is sent by our video recorder. After the unauthorized response, we see in the WireShark that a second request is sent to the Axis camera. But we do not launch a second request in

Re: GET http request

2020-09-08 Thread Daniel Stenberg via curl-library
On Tue, 8 Sep 2020, Dewancker, Bart via curl-library wrote: in this second request, some extra data has been added to the url head: /axis-cgi/admin/10.0.0.180 (see Figure 3).Due to this extra information, the requested page cannot be found. We have not seen this behavior on Debian stretch OS

RE: time to remove Visual Studio project files?

2020-09-07 Thread Daniel Stenberg via curl-library
On Sun, 6 Sep 2020, Marcel Raad wrote: nmake/winbuild is currently not an option as it lacks a lot of options. I think this is symptomatic. Among the three primary ways to build for windows (winbuild, cmake, project files), they all have pros and cons and they all have a unique set of

Re: time to remove Visual Studio project files?

2020-09-07 Thread Daniel Stenberg via curl-library
On Sun, 6 Sep 2020, RE lesgoe via curl-library wrote: - nmake for building with visual studio (winbuild/) - configure for msys/mingw style builds - cmake for the rest - (mingw makefiles for the adventureous, but they remain mostly undocumented) If there is going to be any sort of

Re: time to remove Visual Studio project files?

2020-09-06 Thread Daniel Stenberg via curl-library
On Sun, 6 Sep 2020, Ray Satiro via curl-library wrote: I use the Visual Studio project files. I like that there's several configurations that I can switch between. Isn't that just the equivalent of running different nmake command lines? Why not just save a few common build setups as

Re: Connecting to IMAP server using libcurl

2020-09-05 Thread Daniel Stenberg via curl-library
On Tue, 1 Sep 2020, Jeffrey McKay via curl-library wrote: In my program, I can connect to my test server (outlook.office365.com), and if I use port 143, the insecure IMAP port, I can receive the response. But if I use secure port 993, the program hangs on the select() command, timing out

Re: time to remove Visual Studio project files?

2020-09-05 Thread Daniel Stenberg via curl-library
On Sat, 5 Sep 2020, Joel Winarske wrote: To clarify you can generate nmake files with CMake. Aha! Then I suppose a question is how those files differ compared to those we ship. -- / daniel.haxx.se | Commercial curl support up to 24x7 is available! | Private help, bug

RE: time to remove Visual Studio project files?

2020-09-05 Thread Daniel Stenberg via curl-library
On Sat, 5 Sep 2020, Rod Widdowson via curl-library wrote: I'd be *very* reluctant to see the NMAKE files go, but we have never used the vcxproj files. As I recall, I couldn't get over the apparent impedance mismatch between the multiple parameterization options and the configuration types.

Re: The strange connect behavior of curl via socks5 proexy to different websites.

2020-09-05 Thread Daniel Stenberg via curl-library
On Sat, 5 Sep 2020, Hongyi Zhao wrote: Is there really *anything* that implies that this is curl's fault and not just something in Tor or even in the target server that just don't like incoming traffic from Tor? Any hints for debug/confirm this problem? In general I would say that if curl

Re: Obtain Response String From a CURL Handle for SMTP Connections

2020-09-05 Thread Daniel Stenberg via curl-library
On Fri, 4 Sep 2020, RE lesgoe via curl-library wrote: I suggest a new CURLINFO value, CURLINFO_RESPONSE_STRING ... Currently, the only way to obtain the full response string is by enabling CURLOPT_VERBOSE and CURLOPT_DEBUGFUNCTION, which is overkill for this situation. Sounds like a

time to remove Visual Studio project files?

2020-09-05 Thread Daniel Stenberg via curl-library
Hi, I'd like to get a better feel for the need to ship the visual studio project files we currently host in the project/ directory. Do you use them? Why isn't generating these files using cmake good enough? If we're going to keep them, I'd like to do some cleanups (like renaming the rather

Re: The strange connect behavior of curl via socks5 proexy to different websites.

2020-09-04 Thread Daniel Stenberg via curl-library
On Sat, 5 Sep 2020, Hongyi Zhao via curl-library wrote: werner@X10DAi-01:~$ curl -vI -x socks5://127.0.0.1:9050 https://www.baidu.com ... As you can see, the connection to google succeed while fail for connection to baidu. Any hints for this problem? Is there really *anything* that

Re: Thoughts on HSTS

2020-09-02 Thread Daniel Stenberg via curl-library
On Wed, 2 Sep 2020, Stefan Eissing wrote: But the persistence seems not usable. I cannot specify a file to libcurl, as process privileges will change during the lifetime of the server and also because it will live in several child processes. Would it be an idea to let the hosting application

Re: Thoughts on HSTS

2020-09-01 Thread Daniel Stenberg via curl-library
On Tue, 1 Sep 2020, Kamil Dudka wrote: One minor remark: Why is `--hsts .` going to be used to specify in-memory mode when `--alt-svc ""` is already being used to specify in-memory mode elsewhere? No reason... should probably rather use "" there as well! -- / daniel.haxx.se | Commercial

Re: DNS data not refreshed after CURLOPT_DNS_CACHE_TIMEOUT

2020-09-01 Thread Daniel Stenberg via curl-library
On Tue, 1 Sep 2020, Narasimha M wrote: OK. So in the given example from man page, if I add a sleep between two easy performs, should the application resolve the name? ... if it doesn't reuse the connection. -- / daniel.haxx.se | Commercial curl support up to 24x7 is available!

Re: DNS data not refreshed after CURLOPT_DNS_CACHE_TIMEOUT

2020-09-01 Thread Daniel Stenberg via curl-library
On Tue, 1 Sep 2020, Narasimha M wrote: Hence, I want to keep the connection and handle for a long time. However during this time, there can be changes to the DNS server/data. I would like the application to be agnostic to the changes to the DNS. This would have been possible if CURL queried

Thoughts on HSTS

2020-08-31 Thread Daniel Stenberg via curl-library
Hi! HTTP Strict Transport Security (HSTS) is (simply put) a way for an HTTPS server to say that the host name should not be accessed over HTTP, only HTTPS - for a set number of seconds into the future. I've started to work on an implementation for curl and while doing so, I've put down some

Re: PROPOSAL: unmark MQTT and alt-svc as experimental

2020-08-31 Thread Daniel Stenberg via curl-library
On Wed, 26 Aug 2020, Daniel Stenberg via curl-library wrote: Two such features I think we've seen very little use of (I say this solely based the low bug report frequency) are MQTT and alt-svc. MQTT support enabled by default, landed now. -- / daniel.haxx.se | Commercial curl support up

Re: DNS data not refreshed after CURLOPT_DNS_CACHE_TIMEOUT

2020-08-30 Thread Daniel Stenberg via curl-library
On Sun, 30 Aug 2020, Narasimha M wrote: Is there a way to force the name resolution/DNS checking periodically. You can for example close your handle and crete a new one, so that the connection won't survive. In my particular case, I would like to keep a single connection and check for

Re: DNS data not refreshed after CURLOPT_DNS_CACHE_TIMEOUT

2020-08-29 Thread Daniel Stenberg via curl-library
On Sun, 30 Aug 2020, Narasimha M via curl-library wrote: If I set CURLOPT_DNS_CACHE_TIMEOUT to 2 sec, I expect the application to contact the DNS server and resolve the name every 2 seconds. But I see that DNS requests are sent only once for the first time and never thereafter. I think this

Re: [RELEASE] tiny-curl 7.72.0

2020-08-28 Thread Daniel Stenberg via curl-library
On Fri, 28 Aug 2020, Dennis Clarke via curl-library wrote: Before I begin a test has anyone tried to build tiny-curl on systems with 256MB memory or less? For that matter is there anyone else that tests on these sort of smaller machines? I'm not sure what people have tested or not, but the

[RELEASE] tiny-curl 7.72.0

2020-08-27 Thread Daniel Stenberg via curl-library
Hi friends, I'm happy to announce that I've put together a new release of tiny-curl. The stripped-down version of curl targetted at small systems. For this release I've also created a new section on the curl web site for tiny-curl and I've switched versioning model to use the same version

Re: static link on Ubuntu

2020-08-26 Thread Daniel Stenberg via curl-library
On Wed, 26 Aug 2020, Mike via curl-library wrote: if I add -lGL -lGLEW -lfreetype -lcurl Eclipse uses the shared libs not the static. What to do? Thanks This is not a how to use the linker list, but I would probably start out by using -static ... Of course, you then probably also need to

PROPOSAL: unmark MQTT and alt-svc as experimental

2020-08-26 Thread Daniel Stenberg via curl-library
Hi friends! # Background We introduced the concept of experimental features in curl a while back to allow us to introduce new things gradually, without having to carve the API and behavior into stone immediately. To offer keen users the ability to try out some features and report back before

Re: Support of User/ Email address with 3 dots after @

2020-08-25 Thread Daniel Stenberg via curl-library
On Tue, 25 Aug 2020, Knud Pehrs via curl-library wrote: Does libcurl support email addresses like firstname.n...@part1.part2.part3.com ? Sorry, but where exactly is the email address in your sample code? Is it the user name? If so, then libcurl

Monday Aug 24: Open the feature window

2020-08-23 Thread Daniel Stenberg via curl-library
Hi, We've not received any alarming new issues since the release. When we switch over to Monday, merging new features is fine again. Right now, we have no less than **10** pull requests queued up for this: https://github.com/curl/curl/labels/next-feature-window -- / daniel.haxx.se |

Re: runtests.pl: runhttp2server() fails to return error

2020-08-21 Thread Daniel Stenberg via curl-library
On Thu, 20 Aug 2020, Christian Weisgerber wrote: Yes, cosmetic warnings aside. Thanks. I've created https://github.com/curl/curl/pull/5834 where I try to address these things. -- / daniel.haxx.se | Commercial curl support up to 24x7 is available! | Private help, bug

Re: curl vs libcurl wording in security advisories

2020-08-20 Thread Daniel Stenberg via curl-library
On Thu, 20 Aug 2020, Fritsch, Daniel via curl-library wrote: Is there a specific reason for these divergence between different advisories? No. I suspect they're mostly the result of copy and pasting with a bit sloppy cleanups and my own personal "eroded" accuracy in using the correct terms.

Re: Performing a GET request with JSON

2020-08-20 Thread Daniel Stenberg via curl-library
On Wed, 19 Aug 2020, rafa via curl-library wrote: curl -X GET \ -H "X-Parse-Application-Id: 12345_Example" \ -H "X-Parse-REST-API-Key: abcde_Example" \ -G \ --data-urlencode "where={ \"pin\":\"A string\" }" \ https://urlExample/classes/Pins You don't want/need "-X GET" in there. -G already

Re: runtests.pl: runhttp2server() fails to return error

2020-08-19 Thread Daniel Stenberg via curl-library
On Thu, 20 Aug 2020, Christian Weisgerber via curl-library wrote: The problem is in runhttp2server(). After ten attempts of Ack. Does something like this fix it for you? diff --git a/tests/runtests.pl b/tests/runtests.pl index a409bcc75..f31bb1603 100755 --- a/tests/runtests.pl +++

[SECURITY ADVISORY] libcurl: wrong connect-only connection

2020-08-19 Thread Daniel Stenberg via curl-library
on July 31, 2020. This advisory was posted on August 19th 2020. CREDITS --- This issue was reported by Marc Aldorasi. Patched by Daniel Stenberg. Thanks a lot! -- / daniel.haxx.se | Commercial curl support up to 24x7 is available! | Private help, bug fixes, support, por

[RELEASE] curl 7.72.0

2020-08-19 Thread Daniel Stenberg via curl-library
n Weiss, Brian Inglis, BrumBrum on hackerone, Cameron Cawley, Carlo Marcelo Arenas Belón, causal-agent on github, Cherish98 on github, Dan Fandrich, Daniel Gustafsson, Daniel Stenberg, Denis Goleshchikhin, divinity76 on github, Ehren Bendler, Emil Engler, Erik Johansson, Filip Salomonsson, G

Re: Regarding issue filed https://github.com/curl/curl/issues/5523

2020-08-15 Thread Daniel Stenberg via curl-library
On Sat, 15 Aug 2020, Shilpa Gupta via curl-library wrote: I think something needs to be fixed around https://github.com/curl/curl/blob/aecce3551cbb62a7980e8d22b40eabc091f896a0/lib/vtls/vtls.c#L330 Since I am looking at the libcurl code first time. I can't put a finger of what should be the

Re: Libcurl-win - linkage, redistributables

2020-08-12 Thread Daniel Stenberg via curl-library
On Wed, 12 Aug 2020, David Harris via curl-library wrote: 2: If I end up building static LibCurl, what libraries do I absolutely *have* to include for reasonable levels of operation? I think HTTPS is "reasonable level" so you need a TLS library, possibly the native one offered by Windows

Re: URL in bad format, but why ?

2020-08-10 Thread Daniel Stenberg via curl-library
On Mon, 10 Aug 2020, shiftag via curl-library wrote: I built libcurl statically and everything works fine. Except for the following URL :     https://www.google.com/accessibility/?hl=en My guess would be that you have white space somewhere within the string, perhaps first or last. Maybe

All tests ar now using dynamic port numbers!

2020-08-07 Thread Daniel Stenberg via curl-library
Yeps, It took me a few months to land all the pieces but now we finally run all test servers on dynamic ports: no fixed port numbers are used for curl tests anymore! https://daniel.haxx.se/blog/2020/08/07/using-fixed-port-numbers-for-curl-tests-is-now-history/ -- / daniel.haxx.se |

Upcoming webinar: "Landing code in curl"

2020-08-06 Thread Daniel Stenberg via curl-library
Hello! I'll run a webinar next week (August 13th) on how to How to Make Your First Code Contribution in curl. Details here: https://daniel.haxx.se/blog/2020/08/05/upcoming-webinar-curl-how-to-make-your-first-code-contribution/ If you've never contributed before and/or are uncertain on how to

Re: Is it possible to have one binary support multiple versions of libssl?

2020-07-30 Thread Daniel Stenberg via curl-library
On Thu, 30 Jul 2020, Andreas Falkenhahn via curl-library wrote: Is there a way to make my binary compatible with both libssl.so.1.0.0 and libssl.so.1.0.2? That's really more of a question for the producers of that library: the OpenSSL team. AFAIR, they set their SONAMEs like that simply

Re: Easy Reuse across Multiple Multi Handles

2020-07-30 Thread Daniel Stenberg via curl-library
On Wed, 29 Jul 2020, Damon Earp via curl-library wrote: In the past few months we moved from v7.61.1 to v7.67.0, which is why I looked at that briefly. Anecdotally it looks like the newer version of libcurl is causing more single use connections than the older version. But as I said, I

Re: Easy Reuse across Multiple Multi Handles

2020-07-28 Thread Daniel Stenberg via curl-library
On Tue, 28 Jul 2020, Damon Earp wrote: I finally got time to sit down and try to figure out what is happening. The issue goes away when I set CURLMOPT_MAXCONNECTS. Before I was just setting CURLMOPT_MAX_HOST_CONNECTIONS and most of my connections would live for a few milliseconds, once

Re: Easy Reuse across Multiple Multi Handles

2020-07-26 Thread Daniel Stenberg via curl-library
On Sun, 26 Jul 2020, Patrick Schlangen wrote: When using the multi interface, the pool of connections is held by the multi handle and it gets shared and used by all the easy handles that are added to the multi handles. When a transfer is done, the connection will be help alive (if possible)

Re: Easy Reuse across Multiple Multi Handles

2020-07-26 Thread Daniel Stenberg via curl-library
On Thu, 9 Jul 2020, Damon Earp via curl-library wrote: After curl_multi_info_read says a request is complete, does the easy handle still hold the connection? No it doesn't. When using the multi interface, the pool of connections is held by the multi handle and it gets shared and used by all

Re: How to build updated libcurl version for QNX 6.5

2020-07-24 Thread Daniel Stenberg via curl-library
On Tue, 21 Jul 2020, Nicola Blasuttigh via curl-library wrote: I would like to build an updated libcurl library (7.71) for the QNX 6.5 system from the source code. Does anyone have any idea how to do it and where to start? Once I have downloaded the libcurl source code, how can I add the

Feature freeze on Wednesday!

2020-07-19 Thread Daniel Stenberg via curl-library
Hello friends! On July 22nd, we close the feature window and go into bug-fix only mode for the rest of the cycle until we ship curl 7.72.0 on August 19. -- / daniel.haxx.se | Commercial curl support up to 24x7 is available! | Private help, bug fixes, support, ports, new

Re: How to use libcurl to get the final URL of a site after a redirection ?

2020-07-19 Thread Daniel Stenberg via curl-library
On Sun, 19 Jul 2020, Morbius via curl-library wrote: I would like to write a function to obtain the final URL from a site which redirects to another site using libcurl functions. I need some guidance on this. CURLINFO_EFFECTIVE_URL ?

Re: Calling curl_easy_pause in CURLOPT_XFERINFOFUNCTION and delay/frequency issue

2020-07-15 Thread Daniel Stenberg via curl-library
On Tue, 14 Jul 2020, Mushegh Malkhasyan via curl-library wrote: I noticed that in the documentation it states that the unpausing should be called from a callback thread. I truly hope (and believe) none of our docs use such wording. There's no "callback thread" with libcurl - it's all done in

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