Re: [EXTERNAL] Re: Feature request: provide ability to set a global callback function telling libcurl if IPv6 works on the system

2022-09-21 Thread Dan Fandrich via curl-library
On Thu, Sep 22, 2022 at 12:24:57AM +, Dmitry Karpov via curl-library wrote: > > If Curl_ipv6works() were not called in the CURL_IPRESOLVE_V6 case, would > > that solve the issues that are remaining? > > Your question was: > "So, if libcurl eliminated that call in the CURL_IPRESOLVE_V4 case,

Re: [EXTERNAL] Re: Feature request: provide ability to set a global callback function telling libcurl if IPv6 works on the system

2022-09-21 Thread Dan Fandrich via curl-library
On Wed, Sep 21, 2022 at 10:46:45PM +, Dmitry Karpov via curl-library wrote: > I think that my proposal will provide useful customization for dual-stack > curl applications, and I am not sure that I fully understand your objections > like " It might in your situation, but it wouldn't in

Re: [EXTERNAL] Re: Feature request: provide ability to set a global callback function telling libcurl if IPv6 works on the system

2022-09-21 Thread Dan Fandrich via curl-library
On Wed, Sep 21, 2022 at 08:19:46PM +, Dmitry Karpov via curl-library wrote: > Daniel's PR fixed the issue only for CURL_IPRESOLVE_V4, but not for > CURL_IPRESOLVE_WHATEVER and CURL_IPRESOLVE_IPV6. > Even with his PR, both CURL_IPRESOLVE_WHATEVER and CURL_IPRESOLVE_IPV6 will > use

Re: [EXTERNAL] Re: Feature request: provide ability to set a global callback function telling libcurl if IPv6 works on the system

2022-09-21 Thread Dan Fandrich via curl-library
On Wed, Sep 21, 2022 at 07:40:10PM +, Dmitry Karpov via curl-library wrote: > Yes, doing things "lazily" in Daniel's PR fixes the problem for explicit > CURL_IPRESOLVE_V4, which will not call Curl_ipv6works() anymore. > But the problem is still there for the CURL_IPRESOLVE_WHATEVER, which is

Re: C99

2022-09-21 Thread Dan Fandrich via curl-library
On Wed, Sep 21, 2022 at 11:50:50AM -0700, Ben Greear via curl-library wrote: My opinion is to stay conservative, for those wanting/required to build recent curl on ancient systems with old compilers... This certainly makes life easier for people who are forced to use ancient systems, but it

Re: [EXTERNAL] Re: Feature request: provide ability to set a global callback function telling libcurl if IPv6 works on the system

2022-09-20 Thread Dan Fandrich via curl-library
On Tue, Sep 20, 2022 at 07:24:42PM +, Dmitry Karpov wrote: Not necessarily. If we have a bunch of applications on the system with large codebases which use CURLOPT_IPRESOLVE = AUTO in too many places, then all these places should detect somehow that "IPv6 doesn't work" and change the resolve

Re: Feature request: provide ability to set a global callback function telling libcurl if IPv6 works on the system

2022-09-20 Thread Dan Fandrich via curl-library
On Tue, Sep 20, 2022 at 06:58:31PM +, Dmitry Karpov via curl-library wrote: > To cover such a range of cases, curl application needs a more flexible > approach for detection whether IPv6 works on the "system level". > And I guess the "curl_global_init_ipv6() with callback" provides such >

Re: Above and beyond 32 protocols

2022-09-19 Thread Dan Fandrich via curl-library
On Sat, Sep 10, 2022 at 01:44:42PM +0200, Patrick Monnerat via curl-library wrote: > - Drop support for non-64bit curl_off_t. FWIW, https://wiki.debian.org/ArchitectureSpecificsMemo#Summary shows that all Debian-supported architectures (and I count 30 of those) have a 64-bit long long type.

Re: [RELEASE] curl 7.85.0

2022-09-07 Thread Dan Fandrich via curl-library
On Wed, Sep 07, 2022 at 05:19:36PM -0400, Dennis Clarke via curl-library wrote: > So I am guessing that there is a way for me to re-run test 831 in verbose > detail. The most straightforward for an in-tree build is: cd tests ./runtests.pl -a -n -p -v -d 831 834 877 880 933 936 2023 2024 2026

Re: curl-7.85.0 fails test 831 on Solaris 11.3 SPARCv9

2022-09-07 Thread Dan Fandrich via curl-library
On Wed, Sep 07, 2022 at 07:28:32PM -0400, Dennis Clarke via curl-library wrote: The LD_PRELOAD borks things up badly : s$ s$ LD_PRELOAD=/opt/bw/build/curl-7.85.0_sunos5.10_sparcv9_sslv3.003/tests/libtest/.libs/libhostname.so /usr/xpg4/bin/sed -e 's/foo/bar/' ld.so.1: sed: fatal:

Re: [RELEASE] curl 7.85.0

2022-09-06 Thread Dan Fandrich via curl-library
On Tue, Sep 06, 2022 at 11:57:24PM -0400, Dennis Clarke via curl-library wrote: TESTFAIL: These test cases failed: 831 834 877 880 933 936 2023 2024 2026 2027 So not sure how to proceed. In the past I was generally able to get a fantastic clean results from curl. So then ... how to proceed

Re: About a websockets write callback

2022-06-18 Thread Dan Fandrich via curl-library
On Fri, Jun 17, 2022 at 01:39:00PM +0200, Daniel Stenberg via curl-library wrote: > I would like to provide websockets data with the CURLOPT_WRITEFUNCTION > callback as well. But how would libcurl provide the additional necessary > metadata? I'm admittedly not very familiar with websockets, but

Re: CURLINFO_EFFECTIVE_URL when using CURLOPT_CURLU

2022-06-06 Thread Dan Fandrich via curl-library
On Mon, Jun 06, 2022 at 03:40:09PM -0700, Adam Light via curl-library wrote: > However the problem is that it appears that when the url is set using > CURLOPT_CURLU, curl_easy_getinfo for CURLINFO_EFFECTIVE_URL returns an empty > string. So unless I am missing something it doesn't seem to be

Re: http digest auth failed with libcurl 7.48.0

2022-05-24 Thread Dan Fandrich via curl-library
On Wed, May 25, 2022 at 04:10:40AM +, 范 范珏 via curl-library wrote: > I am working on http/https digest auth using libcurl,tried 7.48.0 and > 7.64.1,neither of them can work. Those versions are 6 years and 3 years old, respectively. Have you tried with the latest version 7.83.1 to see if still

Re: [gphoto-devel] requested defunct digital camera to be added to Garuda Arch Linux repositories? Thank you, Light

2022-05-23 Thread Dan Fandrich
On Mon, May 23, 2022 at 10:05:04AM -0500, Lightsight Braveheart wrote: > Bus 003 Device 005: ID 1b3f:0c52 Generalplus Technology Inc. 808 Camera This seems to be a uvcvideo camera (webcam). You should be able to access it with v4l2 instead of gphoto2.

Re: How to handle CA certificate bundles in portable application bundles (e.g., AppImages)?

2022-05-18 Thread Dan Fandrich via curl-library
On Thu, May 19, 2022 at 02:24:15AM +0200, TheAssassin via curl-library wrote: > On 18.05.22 22:57, Dan Fandrich via curl-library wrote: > > This sounds like it would become a source of problems, since the same > > application running on exactly the same OS would have diff

Re: How to handle CA certificate bundles in portable application bundles (e.g., AppImages)?

2022-05-18 Thread Dan Fandrich via curl-library
On Wed, May 18, 2022 at 08:05:41PM +0200, TheAssassin via curl-library wrote: > The issue I am facing with this is that apparently, libcurl just hardcodes > the path to the CA certificate bundle (e.g., the system-provided bundle). > This behavior is problematic. An AppImage built on CentOS 7 using

Re: [gphoto-devel] Setting LOCALEDIR in libgphoto2

2022-04-21 Thread Dan Fandrich
On Thu, Apr 21, 2022 at 04:07:21PM +0100, Jim Easterbrook wrote: > I assume I can't persuade you to change the libgphoto2 API by adding an > initialisation function. Is there any chance of making LOCALEDIR settable > with an environment variable, like CAMLIBS and IOLIBS are? In what situation

Re: Escaping URL for CURLOPT_URL

2022-04-20 Thread Dan Fandrich via curl-library
On Wed, Apr 20, 2022 at 04:41:22PM +0200, Andreas Falkenhahn via curl-library wrote: > is there any convenient way of escaping a URL so that it can be passed to > CURLOPT_URL? The curl_url API can do this, specifically, the CURLU_URLENCODE option. curl_url is the preferred means of parsing URLs

[kio-extras] [Bug 412257] kiod5 doesn't release usb device when it is not in use

2022-04-18 Thread Dan Fandrich
https://bugs.kde.org/show_bug.cgi?id=412257 Dan Fandrich changed: What|Removed |Added CC||d...@coneharvesters.com -- You are receiving

Re: https: curl_easy_perform() failed: Unsupported protocol

2022-04-12 Thread Dan Fandrich via curl-library
On Tue, Apr 12, 2022 at 07:07:51PM +0200, Julien Matthey via curl-library wrote: > I get "curl_easy_perform() failed: Unsupported protocol" for https requests: [...] > And here is my problem with it: it works with the curl.exe executable I also > built! Example: > > $curl *https*://www.google.com

Re: A feature request

2022-03-19 Thread Dan Fandrich via curl-library
On Sat, Mar 19, 2022 at 01:06:53PM +0530, Devang Modi via curl-library wrote: > I m working on a project that is based upon PROGRESS/OpenEdge software. > I am looking to integrate libCurl for this project but due to the native > platform language support issue > I am not able to use the following

Re: [gphoto-devel] Arduino support?

2022-02-15 Thread Dan Fandrich
On Tue, Feb 15, 2022 at 05:37:10PM -0500, Hubert Figuiere wrote: > On 2022-02-15 5:17 p.m., Dave Taylor wrote: > > If not, how much effort do we think it might take to port? > you'll need: > > - A modern C toolchain > - A certain about of RAM > - A proper libusb implementation OR rewrite the USB

Re: A CI job inventory

2022-02-07 Thread Dan Fandrich via curl-library
On Mon, Feb 07, 2022 at 11:10:39PM +0100, Daniel Stenberg via curl-library wrote: > In order to get better overview and control of the jobs we run, I'm > proposing that we create and maintain a single file that lists all the jobs > we run. This "database" of jobs could then be used to run checks

Re: Fewer mallocs is better, episode #47

2022-02-03 Thread Dan Fandrich via curl-library
On Thu, Feb 03, 2022 at 08:35:13PM -0500, Timothe Litt via curl-library wrote: > On 03-Feb-22 20:09, Henrik Holst via curl-library wrote: >> the traces only shows that strlen was called, not on which string it was >> called so the digging is a bit time consuming). > Set on-the-fly breakpoints

Re: Make curl works as web proxy

2022-01-25 Thread Dan Fandrich via curl-library
On Tue, Jan 25, 2022 at 07:31:31PM -0300, Rodrigo s via curl-library wrote: > Well, the problem is that I can't install anything. Just run php... Is it > possible? A web search tells me that it's possible. See this link for example:

Re: Mutt on ubuntu 20

2022-01-10 Thread Dan Fandrich
On Mon, Jan 10, 2022 at 06:27:04PM -0600, Derek Martin wrote: > 1. Does anyone have any idea why ubuntu is shipping such an ancient >version of Mutt? ;-) 1.13.2 was the most recent release of mutt at the beginning of 2020 when Ubuntu 20.04 went into testing, and the OS was released only a few

Re: Feature suggestion to block Curl from connecting reserved and private IP addresses

2021-12-15 Thread Dan Fandrich via curl-library
On Tue, Dec 14, 2021 at 01:29:11PM +0530, Ayesh Karunaratne via curl-library wrote: > With the addition of CURLOPT_PREREQFUNCTION, one could write a > callback function to selectively block requests to certain IP/port > ranges. For the record, blocking requests by IP address has been possible

Re: SSL connect error

2021-12-08 Thread Dan Fandrich via curl-library
On Wed, Dec 08, 2021 at 02:53:54PM +0100, Thierry Huchard via curl-library wrote: > I am the maintainer of the sane-escl backend, I have an error on an https > access on a canon XK90 scanner. > If you have an idea of why and how to bypass it, I'm interested! > > curl_handle =

Re: Custom resolve of Address

2021-11-22 Thread Dan Fandrich via curl-library
On Mon, Nov 22, 2021 at 09:14:44PM +0100, Marcel via curl-library wrote: > Would you think extending the CURL API to allow my usecase would be a good > idead? I agree with Timothe that this would probably not be that useful in the general case. The other suggestions (like setting up dnsmasq or a

Re: Custom resolve of Address

2021-11-22 Thread Dan Fandrich via curl-library
On Mon, Nov 22, 2021 at 01:26:41PM +0100, Marcel via curl-library wrote: > I'm in need of a callback, that let me resolve a domain to an IP address. > > I have a modem module which communicates via AT commands with my embedded > linux device. > The only thing currently not working is resolving

Re: Results for curl 7.80 with OpenSSL 3.0.0 on i386-minix 3.4.0

2021-11-15 Thread Dan Fandrich via curl-library
On Mon, Nov 15, 2021 at 03:26:48PM +0100, Nico Sonack via curl-library wrote: > After building a rather recent version of Minix we get : > > # uname -a > Minix minix 3.4.0 Minix 3.4.0 (GENERIC) i386 > # cc --version > clang version 3.6 (branches/release_36 237755) > Target: i386-elf32-minix >

Re: FTPS session resumption on older curl-Version

2021-10-28 Thread Dan Fandrich via curl-library
On Thu, Oct 28, 2021 at 11:34:00AM +0200, Daniel Stenberg via curl-library wrote: > On Thu, 28 Oct 2021, Joscha Knobloch via curl-library wrote: > > How would you go about updating curl to a newer version on CentOS7? Is > > there a repository that could be added? > > I don't know anything about

Re: Issues with http proxy requests with 7.79.0

2021-09-21 Thread Dan Fandrich via curl-library
On Tue, Sep 21, 2021 at 02:03:00AM -0400, Abhinav Singhal wrote: > That's correct. 7.71.1 returns HTTP 403 (requested resource is forbidden; the > server understood the request, but will not fulfill it), which is what I want > for 7.79.0, but the server side logs only shows ERR_ACCESS_DENIED for

Re: Issues with http proxy requests with 7.79.0

2021-09-20 Thread Dan Fandrich via curl-library
On Tue, Sep 21, 2021 at 12:35:31AM -0400, Abhinav Singhal via curl-library wrote: > I'm tasked to upgrade the curl version at work from the current 7.71 to the > latest 7.79.0. The issue I am running into is that one of the tests that > validates whether an http proxy server is running by sending

Re: Cookie storage customization?

2021-09-14 Thread Dan Fandrich via curl-library
On Tue, Sep 14, 2021 at 09:40:34PM +0200, Isaac Jurado via curl-library wrote: > I'm aware that the cookie jar is not mandatory and custom cookie storage could > be implemented with ease.  However, some certain amount of logic, that libcurl > already provides, would have to be replicated.  Mainly

Re: [gphoto-devel] Nikon Live View with libgphoto2

2021-08-30 Thread Dan Fandrich
On Mon, Aug 30, 2021 at 11:08:25AM -0400, xiang5 wrote: > I hope this email list could help me solve the problems I am having. I am > using Nikon D3500 for a project. What I need now is getting camera live view > stream and show in my application. I am wondering is there any function I can >

Re: configure options for various libcurl builds

2021-08-21 Thread Dan Fandrich via curl-library
On Sat, Aug 21, 2021 at 05:42:47PM +, Anmol Mishra via curl-library wrote: > Could there be some guidance about a simple libcurl static build for Static building is tricky because the entire chain of static dependencies resulting from all libcurl dependencies needs to be added to the final

Re: undefined symbol: curl_multi_poll

2021-07-16 Thread Dan Fandrich via curl-library
On Fri, Jul 16, 2021 at 05:14:54PM -0400, Steve Scott via curl-library wrote: > I am trying to install curl with libssh2 enabled. I am following this > tutorial: > Ubuntu: Fix Protocol "sftp" not supported or disabled in libcurl « Yousof > Kamal > (ykamal.com) > > I used the following command

Re: QoS Level on MQTT

2021-06-28 Thread Dan Fandrich via curl-library
On Mon, Jun 28, 2021 at 08:29:33PM -0400, Gealber Morales via curl-library wrote: > My intention is to add this option, for the publishing, in a way like this: > > curl -d 95 -qos 2 mqtt://localhost:1883/curl/mqtt > > The new option would be -qos ,  in case of omission  zero would be the >

Re: curl websockets

2021-06-23 Thread Dan Fandrich via curl-library
On Thu, Jun 24, 2021 at 12:03:41AM +0200, Daniel Stenberg via curl-library wrote: > Even if I having been educated in this thread have realized that the > curl_easy_recv and curl_easy_send calls won't work for this as-is, so we > should therefore probably consider adding special-purpose websocket

Re: Feature request: new callback to report http chunks boundaries

2021-06-20 Thread Dan Fandrich via curl-library
On Sun, Jun 20, 2021 at 05:34:00PM +0200, Daniel F via curl-library wrote: > I am writing app which will receive updates (in JSON format) from server. > Server uses HTTP chunked transfer encoding. I also use TLS to encrypt > transmission. If I read curl code in lib/http_chunks.c correctly, library

Re: Support better than MD5 hostkey hash

2021-06-09 Thread Dan Fandrich via curl-library
On Wed, Jun 09, 2021 at 12:40:42PM +0100, Tomalak Geret'kal via curl-library wrote: > On 09/06/2021 12:29, Mats Lindestam via curl-library wrote: > I am new to this community and I am looking into how to develop support > for > this feature: https://curl.se/docs/todo.html# >

Re: Test cases MQTT

2021-05-24 Thread Dan Fandrich via curl-library
On Mon, May 24, 2021 at 02:59:00PM -0400, Gealber Morales via curl-library wrote: > 1. What is the main flow that follows when I run for example ./runtests.pl > 3017? I don't know Perl so don't quite understand this 6000 lines program, > until now runtests.pl is magic to me. I think that it must

Re: MQTT username support

2021-05-21 Thread Dan Fandrich via curl-library
On Fri, May 21, 2021 at 05:46:40PM -0400, Gealber Morales via curl-library wrote: > In order to improve this, it would be nice to at least not be required the > password to be supplied. Looking at the command line options, I don't found a > way > to supply just the user. In case you know, write

Re: 1.9.1 release pending, please give it a look

2021-05-13 Thread Dan Fandrich
On Thu, May 13, 2021 at 08:09:57AM +0200, Jan Ehrhardt wrote: > Dan Fandrich in gmane.network.ssh.libssh2.devel (Wed, 12 May 2021 17:41:16 > >The command "autoreconf -if" will generate the configure file from the > >source. > >That's a standard autotools comma

Re: 1.9.1 release pending, please give it a look

2021-05-12 Thread Dan Fandrich
On Thu, May 13, 2021 at 02:00:42AM +0200, Jan Ehrhardt wrote: > That was a bit hard, as neither the snapshots nor github contained > ./configure. And the script at https://github.com/Frugghi/iSSH2 really > needs it. I was compiling on a Mac with macOS Big Sur 11.3.1. No autotools > installed. The

Re: [gphoto-devel] Remote Capture support for Canon Powershot G12

2021-03-14 Thread Dan Fandrich
On Sun, Mar 14, 2021 at 12:38:27PM +0100, Volker Weber wrote: > Are there any plans to support remote capture for the G12 similar as to the > capabilities for the G10 ? [...] > No Image Capture, No Open Capture, No vendor specific capture This line describes the capabilities reported by the

Re: Request for help for beginner, thanks!

2021-01-21 Thread Dan Fandrich
On Mon, Jan 18, 2021 at 02:13:15PM -0500, David Spector wrote: > Thank you for taking the time to share your opinions. They certainly differ > from mine, and deserve a thoughtful response. > > "Try getting one of the example programs working in a simplified case then > only then alter it." > >

Re: Request for help for beginner, thanks!

2021-01-18 Thread Dan Fandrich
On Sun, Jan 17, 2021 at 01:40:04PM -0500, David Spector wrote: > Thanks for the suggestion. I appreciate the time you have spent on this. > > As a beginner in this area, this code is not understandable. That is why I > asked for a working example (did I remember to say the example had to be >

Re: Request for help for beginner, thanks!

2021-01-17 Thread Dan Fandrich
On Sun, Jan 17, 2021 at 11:58:31AM -0500, David Spector wrote: > I will be maintaining a simple local database (possibly as zero-length file > directory entries) representing when each website page was last built, as a > cache. Then, when a build of a website is requested, my program will use the

Re: Request for help for beginner, thanks!

2021-01-17 Thread Dan Fandrich
On Sun, Jan 17, 2021 at 08:27:27AM -0500, David Spector wrote: > Please, I need the simplest possible PHP coding example of using libssh or > libssh2 to upload a single file using the sftp protocol in the following > environment: Windows, PHP running via a local server URL in a browser (for >

Re: Git protocol support of (lib)curl.

2021-01-05 Thread Dan Fandrich via curl-library
On Wed, Jan 06, 2021 at 11:52:35AM +0800, Hongyi Zhao via curl-users wrote: > On Wed, Jan 6, 2021 at 8:57 AM Dan Fandrich via curl-library > wrote: > > > > On Wed, Jan 06, 2021 at 08:29:21AM +0800, Hongyi Zhao via curl-library > > wrote: > > > $ curl git://git.sv

Re: Git protocol support of (lib)curl.

2021-01-05 Thread Dan Fandrich via curl-library
On Wed, Jan 06, 2021 at 08:29:21AM +0800, Hongyi Zhao via curl-library wrote: > $ curl git://git.sv.gnu.org/emacs.git > curl: (1) Protocol "git" not supported or disabled in libcurl > > So, any hints for the git protocol support of (lib)curl? I'm not sure the git: protocol is very useful without

Re: TESTFAIL: These test cases failed: 1167

2020-12-20 Thread Dan Fandrich via curl-library
On Sun, Dec 20, 2020 at 03:35:45PM -0500, Dennis Clarke via curl-library wrote: > >> Will do but I don't see anything different > > > > > > Please run it directly using verbose -v, refer to the command line above > > > > > > Well throwing in a -v does nothing new : It's the badsymbols.pl

Re: Distinguishing directories versus files

2020-10-22 Thread Dan Fandrich
On Thu, Oct 22, 2020 at 03:43:33PM -0500, Michael Loutris wrote: > I was successful in retrieving the contents of a server's directory, but when > I > looked at the attributes, I didn't see anyway to identify a directory versus > normal files. I am working on SFTP communication between to

Re: libcurl hang (v2)

2020-10-21 Thread Dan Fandrich via curl-library
On Wed, Oct 21, 2020 at 03:50:00PM +0100, MS via curl-library wrote: > Gisle: thank you for your response. > > > Let's focus on the different behaviour with IPv4: > > Using libcurl in an application, without firewall > operating, attempting to connect to bbc.co.uk, > I obtain a hang with > > * 

Re: libcurl configuration for sftp

2020-10-19 Thread Dan Fandrich via curl-library
On Mon, Oct 19, 2020 at 10:40:30AM -0500, Michael Loutris wrote: > I grabbed the libssh2.dll and generated a .lib for Windows and was able to > successfully transfer a file. > I suspect that my issue has to do with properly formatting the strings to > libcurl, and for Windows in particular. >

Re: libcurl configuration for sftp

2020-10-14 Thread Dan Fandrich via curl-library
On Wed, Oct 14, 2020 at 10:23:11AM -0500, Michael Loutris wrote: > I will do as you requested and thank you for your time and expertise! > For clarification, you stated that the Windows OpenSSH library has disabled > many protocols supported by libssh2 but the OpenSSH SFTP call from my client >

Re: libcurl configuration for sftp

2020-10-14 Thread Dan Fandrich via curl-library
On Wed, Oct 14, 2020 at 09:06:14AM -0500, Michael Loutris wrote: > > On 10/14/2020 12:35 AM Dan Fandrich via curl-library > > wrote: > > > > > > On Tue, Oct 13, 2020 at 06:42:50PM -0500, Michael Loutris via curl-library > > wrote: > > > I am t

Re: libcurl configuration for sftp

2020-10-13 Thread Dan Fandrich via curl-library
On Tue, Oct 13, 2020 at 06:42:50PM -0500, Michael Loutris via curl-library wrote: > I am trying to securely transfer a file between two windows 10 devices, and I > get error 67, "CURLE_LOGIN_DENIED" when calling curl_easy_perform(). All of > the curl_easy_setopt() calls return success. > > The

Re: [gphoto-devel] Announcement: libgphoto2 and gphoto2 2.5.26 release

2020-10-13 Thread Dan Fandrich
On Mon, Oct 12, 2020 at 12:26:48PM +0200, Guido Scholz wrote: > Am Mon, 12. Oct 2020 um 11:03:53 +0200 schrieb Marcus Meissner: > > Should I keep doing .gz files? > > I see no reason to disable them. .gz is the lingua franca of compression formats so it will be available in places where .xz

Re: Problem trying to use Curl in C++ to get http response string after sending http string to server.

2020-09-25 Thread Dan Fandrich via curl-library
On Fri, Sep 25, 2020 at 04:01:08PM +, José Fernández via curl-library wrote: > When the program tries to get the response from the server sends it always > shows on the screen: > curl_easy_perform() failed to get answer: Timeout was reached > I have tried to increase the timeout and I get

Re: [gphoto-devel] Sony QX30 output results

2020-07-07 Thread Dan Fandrich
On Tue, Jul 07, 2020 at 11:27:40AM -0700, Brandon Lampert wrote: > I built libgphoto2 from GIT and "gphoto2-config --version" shows that I am > running 2.5.25.1. Also, I built gphoto2 from GIT but the logs I sent you > yesterday show libgphoto2 version 2.5.16. I am not sure why this is happening.

Re: CURLE_PEER_FAILED_VERIFICATION

2020-07-07 Thread Dan Fandrich via curl-library
On Tue, Jul 07, 2020 at 02:24:15PM +0200, Sven Appel via curl-library wrote: > When using the commandline-version of curl, I have no problems to get the > result I'm expecting. But I'm runnig into trouble when I'm using the > libcurl-version within my sourcecode. You can use the --libcurl option

Re: Considering a version 8 at some point...

2020-07-01 Thread Dan Fandrich via curl-library
On Wed, Jul 01, 2020 at 10:33:55AM +0200, Kamil Dudka via curl-library wrote: > I think the key question is who would maintain such an LTS branch in upstream. Maybe some of the distros maintaining their own LTS branches of curl would sponsor such a branch? Right now, there are several people in

Re: Let libcurl return the full list of mirror's URLs for a downloading file.

2020-06-21 Thread Dan Fandrich via curl-library
On Sun, Jun 21, 2020 at 09:15:05PM +0800, Hongyi Zhao via curl-library wrote: > As you can see, it seems libcurl returns the random URL for the target > file. I want to know whether libcurl has the capability of obtaining > all the potential mirror's URLs. curl returns exactly what the server

Re: Content-Type (charset) formatting

2020-05-24 Thread Dan Fandrich via curl-library
On Sun, May 24, 2020 at 08:32:46PM +0200, Mark Windshield via curl-library wrote: > I was changing curl a little to integrate as request library into one of our > projects, and then realized that the Content-Type by default is "text/html; > charset=UTF-8", while this isn't a problem in most cases

Re: Last-Modified header

2020-05-21 Thread Dan Fandrich via curl-library
On Thu, May 21, 2020 at 03:46:33PM +0100, James Read via curl-library wrote: > I'm implementing a simple web crawler with curl and want to retrieve the > Last-Modified header so I can implement a sensible recrawl policy. I've found  > https://curl.haxx.se/libcurl/c/getinfo.html which is a nice

Re: Better curl --help demo

2020-05-18 Thread Dan Fandrich via curl-library
On Mon, May 11, 2020 at 10:11:18AM +0200, Kamil Dudka wrote: > On Sunday, May 10, 2020 12:50:27 AM CEST Dan Fandrich wrote: > > I gave a talk for curl://up 2020 this weekend about how we might improve the > > curl help system. With 231 options, "curl -h" just overwhelms

Re: anything to add to the 2020 survey?

2020-05-11 Thread Dan Fandrich via curl-library
On Mon, May 11, 2020 at 09:44:41AM +0200, Daniel Stenberg via curl-library wrote: > I'm planning to launch the 2020 user survey in exactly one week. It is > basically our only way to get a reality check through the year from actual > users. We started doing them 2014. > > Anything particular you

Better curl --help demo

2020-05-09 Thread Dan Fandrich via curl-library
I gave a talk for curl://up 2020 this weekend about how we might improve the curl help system. With 231 options, "curl -h" just overwhelms the user right now. I quickly coded up a demo of what I had in mind so people can get a flavour of what it might look like in practise. Run this script just

Re: Presentation: The state of curl 2020

2020-04-30 Thread Dan Fandrich via curl-library
On Thu, Apr 30, 2020 at 11:55:44AM +0200, Daniel Stenberg via curl-library wrote: > I've been silent about curl up 2020 the online version as I've been > seriously uninspired of what to do about it. So here's this presentation at > least and I really wouldn't mind hearing if anyone wants to do

Re: Test 1453 and dynamic ports

2020-04-30 Thread Dan Fandrich via curl-library
On Thu, Apr 30, 2020 at 02:11:43PM +0200, Daniel Stenberg wrote: > I think %NOLISTENPORT seems like the most effective change for this case, as > it avoids running a server in vein and it will get the desired effect. I've created PR#5314 with this approach. There were 26 tests affected, although

Test 1453 and dynamic ports

2020-04-30 Thread Dan Fandrich via curl-library
Test 1453 now fails when run on its own and I think it's due to the new dynamic port code. The test is specified with tftp but not tftp because it doesn't actually need the server running (it's designed to fail early). However, the test harness replaces the %TFTPPORT in the command section with

Re: Cross compiling for VRX EVO

2020-03-26 Thread Dan Fandrich via curl-library
On Thu, Mar 26, 2020 at 03:19:58PM -0500, David Merinos via curl-library wrote: > Hello. I'm in a project for a very old Verifone Terminal, a VX520C. In this > project we require to use CURL to perform some Request to a webservice. I'm > compiling on Windows 7, with a VRX eVo Service Development

Re: How to get more information about error code 7

2020-03-19 Thread Dan Fandrich via curl-library
On Thu, Mar 19, 2020 at 05:33:52PM -0700, Leo Song via curl-library wrote: > Thanks for the reply. > I've already enabled CURLOPT_VERBOSE, and still getting Curl error 7.  > > I've tried with CURLINFO_OS_ERRNO, and am getting errno 101, which maps to > "Network is unreachable".  > Is there any

Re: Warning: using file:// on Windows with curl

2020-03-17 Thread Dan Fandrich via curl-library
On Tue, Mar 17, 2020 at 03:25:15AM +, Norton, Mike via curl-users wrote: > If it's a "feature you're seldom interested in" then I don't see how you can > say the "benefits of supporting it are great". It seems to me you are > interested in accessing resources on the local disk, not

Re: Warning: using file:// on Windows with curl

2020-03-16 Thread Dan Fandrich via curl-library
On Mon, Mar 16, 2020 at 07:37:42PM +, Norton, Mike via curl-users wrote: > No, the benefits of supporting "a resource on the local disk" are great. But > TIL that "file:" is not supposed to be a synonym for "a resource on the local > disk". The benefits of supporting "file:" in its entire

Re: Warning: using file:// on Windows with curl

2020-03-16 Thread Dan Fandrich via curl-library
On Mon, Mar 16, 2020 at 03:14:31PM +, Norton, Mike via curl-users wrote: > One might argue that since file:// does not specify a transfer protocol, it > doesn't belong in a transfer tool as a choice of protocol. The benefits of supporting file: are great, though. I've used curl in places

Re: Memory leak issue

2020-03-10 Thread Dan Fandrich via curl-library
On Tue, Mar 10, 2020 at 08:06:18PM +0530, Velayuthaperumal via curl-library wrote: >     What are the functions which can be called to free the memory allocated > by libcurl API's. Cleanup functions should all be documented in the man pages for the APIs in question. If they aren't, please let

Re: Lib Curl Conflicts with Norton Anti Virus

2020-03-07 Thread Dan Fandrich via curl-library
On Fri, Mar 06, 2020 at 11:45:16PM -0500, Ray Satiro via curl-library wrote: > On 3/6/2020 5:58 PM, Essam Makhlouf via curl-library wrote: > > I had a life chat with Norton support agent and allowed a remote control > > session to help me resolve the problem. He confirmed the file is indeed > >

Re: curl-library Digest, Vol 174, Issue 10

2020-02-14 Thread Dan Fandrich via curl-library
On Fri, Feb 14, 2020 at 04:20:31PM +0530, Nishad DESHMUKH via curl-library wrote: > how to store that bitstream as video  file .if i want to display that > bitstream  as video what are the ways you can  suggest ? As I said, gstreamer is one option. It all depends on what you're trying to do. You

Re: rtsp curl code not playing video

2020-02-14 Thread Dan Fandrich via curl-library
On Fri, Feb 14, 2020 at 02:39:16PM +0530, Nishad DESHMUKH via curl-library wrote: > after compilation and run the link video not played . my input was libcurl doesn't play video. It will happily download a bitstream containing video content and supply it to your application, but what that

Bug#950172: gpscorrelate ftbfs with libexiv2-27

2020-02-07 Thread Dan Fandrich
The problem is also fixed in the upstream ver. 2.0 (upstream has moved to https://github.com/dfandrich/gpscorrelate).

Bug#950172: gpscorrelate ftbfs with libexiv2-27

2020-02-07 Thread Dan Fandrich
The problem is also fixed in the upstream ver. 2.0 (upstream has moved to https://github.com/dfandrich/gpscorrelate).

Re: Resolve.conf questions

2020-01-14 Thread Dan Fandrich via curl-library
On Tue, Jan 14, 2020 at 03:45:18PM +0100, Mirko Raca via curl-library wrote: > conf changes. Is there a way to "refresh" just the DNS settings (force > resolve.conf re-read somehow?) without re-creating the easy_handles? On many systems calling res_init() will do it. See also

Re: how to make requests of http2 using curl

2019-12-17 Thread Dan Fandrich via curl-library
On Tue, Dec 17, 2019 at 02:44:11PM +0800, peng xu via curl-library wrote: > curl_easy_setopt(easy_handle, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_2_0); You should really be checking the error codes returned by all these functions. A failure here is a pretty big red flag.

Re: HTTP/0.9 problem

2019-11-28 Thread Dan Fandrich via curl-library
On Thu, Nov 28, 2019 at 08:42:09AM +0100, Daniel Stenberg via curl-library wrote: > So, the question is then how curl manages to not consider your response line > ok? Can you repro this against a public URL? Could it be a line ending problem, e.g., CR but no LF? --trace should say.

Re: cURL error 77

2019-10-23 Thread Dan Fandrich via curl-library
On Wed, Oct 23, 2019 at 09:50:48AM -0400, Leo Solutions via curl-library wrote: > I really need your help on this. > We are using Mailgun PHP API and they use curl to call their api. You won't get much PHP support on this list. > For some reason, we have a problem with cURL error 77 and

Bug#502065: Disproportionate use of RAM on big GPX files

2019-10-22 Thread Dan Fandrich
I looked into the RAM usage with large .gpx files and the problem is libxml2. A test file with 840K points (115.0 MiB file size) used 848.6 MiB of heap in libxml2 and only 45 MiB of heap for everything else (on i686; all figures exclude allocation overhead). gpscorrelate's internal requirements

Bug#576744: gpscorrelate -r -n -v ignores '-n' and deletes all geodata in exif

2019-10-22 Thread Dan Fandrich
Fixed in upstream git.

Re: ARM test 323 failure

2019-10-18 Thread Dan Fandrich via curl-library
On Fri, Oct 18, 2019 at 03:56:22PM -0400, Jeffrey Walton wrote: > Here's another one you may like: OpenCSW. The OpenCSW folks provide > Solaris 9-11 on Sparc and i86. > > https://www.opencsw.org/extend-it/signup/to-upstream-maintainers/ Dagobert set up curl builds on OpenCSW some time ago that

Re: ARM test 323 failure

2019-10-18 Thread Dan Fandrich via curl-library
> On Fri, Oct 18, 2019 at 12:07 PM Daniel Stenberg via curl-library > > I love this ability of finally getting some CI builds going on ARM! It's definitely a start. I'll submit it as-is just to get some ARM coverage now. Once someone gets a chance to look at the test issues we can stop disabling

ARM test 323 failure

2019-10-18 Thread Dan Fandrich via curl-library
I have a PR[1] to add an ARM build to Travis (ARM support is still in beta) and I've noticed a few problems. For one, test 323 consistently fails (see an example at [2]). curl is returning CURLE_GOT_NOTHING instead of the expected CURLE_SSL_CONNECT_ERROR in that case. The PR skips that test on ARM

Re: api equivalent to curl --data-urlencode flag?

2019-10-11 Thread Dan Fandrich via curl-library
On Fri, Oct 11, 2019 at 08:17:26PM +1100, ka sc via curl-library wrote: > So i did my own client function for what curl --data-urlencode flag > does for the command line. Obviously, i dont want to reinvent the > wheel if there is a better solution already? Thanks for your help. I would think you

Re: Stoppable curl_easy_perform ?

2019-10-07 Thread Dan Fandrich via curl-library
On Mon, Oct 07, 2019 at 11:27:28PM +0200, Daniel Stenberg via curl-library wrote: > Consider curl_easy_stop(). Can be called from the same or another thread. > This stops the specific transfer *iff* that transfer was setup to *allow* > being externally stopped. > > You enable a transfer to be

Re: bypassing name resolve hangs

2019-09-23 Thread Dan Fandrich via curl-library
On Mon, Sep 23, 2019 at 02:39:15PM +0200, Paul Dreik via curl-library wrote: > Is there an easy way to (locally) add a hack to get the resolving done > quicker? Perhaps by hard coding everything to resolve to a fixed adress? > The fuzzing speed is below 100 tries per second, and that is at least a

Re: Curl coredump after re-use connection

2019-09-17 Thread Dan Fandrich via curl-library
On Tue, Sep 17, 2019 at 07:39:40AM +, Nguyen Hoang Tuan (Hubble Vietnam) wrote: > I fixed but the connection still does not reuse, total time still high. > I try to test with google but it does not success, but the main flow is > correct, i just change the address. > > Please help to review

Re: Curl coredump after re-use connection

2019-09-17 Thread Dan Fandrich via curl-library
On Tue, Sep 17, 2019 at 05:01:45AM +, Nguyen Hoang Tuan (Hubble Vietnam) via curl-library wrote: > I am an newbie starting to use libcurl and trying to write an example to reuse > http connection. > Everything is ok when i just re call curl_easy_perform many times without any > change. > But

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