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: 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: 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: 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: 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 the user > > right now. I

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

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

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

Re: Adding a feature to curl: disabling partial range verification

2019-09-12 Thread Dan Fandrich via curl-library
On Thu, Sep 12, 2019 at 03:01:14PM +, philippe marguinaud via curl-library wrote: > Well, from what curl says, it returns a size of zero: > > $ curl -o ICMSHFCSTINIT -r 100-200 -n ftp://hendrix.meteo.fr/tmp/ICMSHFCSTINIT > ** Resuming transfer from byte position 100 > % Total% Received

Re: Adding a feature to curl: disabling partial range verification

2019-09-12 Thread Dan Fandrich via curl-library
On Thu, Sep 12, 2019 at 01:52:04PM +, philippe marguinaud via curl-library wrote: > I like curl, and I have written an application based on it to retrieve data > from remote servers and then process it. I would like to use it at my work, > but > all our data is stored on a proprietary FTP

Re: Curl Get with XML

2019-08-02 Thread Dan Fandrich via curl-library
On Fri, Aug 02, 2019 at 09:46:03PM -0400, Ken Ballentine via curl-library wrote: > Curl -X GET -k -I https://returns.usps.com/Services/ What is the purpose of these command-line options? -X and -I are conflicting with each other. Just drop them both.

Re: Request: Make HTTP2 library version available via API

2019-07-17 Thread Dan Fandrich via curl-library
On Wed, Jul 17, 2019 at 12:56:36PM +0200, Mac-Fly via curl-library wrote: > I wonder if it is possible to get access to the libnghttp2 version used > via curl_version_info_data. Similar to ssl_version, libz_version and > alike. Since its a major component in CURL as well, it seems useful. > >

Re: Unrecognized content encoding type. libcurl understands deflate, gzip content encodings.

2019-06-08 Thread Dan Fandrich via curl-library
On Fri, Jun 07, 2019 at 07:58:58PM -0400, Aditya Diwakar via curl-library wrote: > When I make my request, I receive something with content that is encoded as > "br" (brotil) and it errors with "Unrecognized content encoding type. libcurl > understands deflate, gzip content encodings." > > I am

Re: Nominating polarssl for deprecation

2019-05-14 Thread Dan Fandrich via curl-library
On Tue, May 14, 2019 at 04:48:31PM +0200, Daniel Stenberg via curl-library wrote: > Hi, > > The polarssl TLS library has not had an update in over three years. The last > release was done on January 7 2019 [1]. This should say 2016, which is a lot worse. I'd have to agree with this move.

Re: Aborting curl request when SIGTERM received

2019-04-02 Thread Dan Fandrich via curl-library
On Tue, Apr 02, 2019 at 03:39:14PM +0530, Prashant Shubham via curl-library wrote: > If there is an ongoing curl request and the application receives > SIGTERM, is there a way curl can acknowledge and abort the request in > middle. The most reliable way to do this is probably to write a SIGTERM

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 > > wait for data until

Re: FreeBSD CI builds

2019-02-10 Thread Dan Fandrich via curl-library
After some trial runs, I've enabled Cirrus with builds on FreeBSD 10.4, 11.2 and 12.0. They're pretty full-featured builds, too, but there are some caveats. I discovered that quite a few tests (22) fail on FreeBSD. I didn't look into the reasons why, but rather just disabled those in the CI

FreeBSD CI builds

2019-02-09 Thread Dan Fandrich via curl-library
https://cirrus-ci.org/ is offering Github-integrated continuous integration builds on FreeBSD, among other platforms. It's very much in the same spirit as Travis and Appveyor and likewise, is free for Open Source projects. I've pushed a sample configuration (untested) to

Re: docs: curl-related videos

2019-02-01 Thread Dan Fandrich via curl-library
On Fri, Feb 01, 2019 at 09:24:00AM +0100, Daniel Stenberg via curl-library wrote: > On Fri, 1 Feb 2019, Daniel Gustafsson wrote: > > > Just repeating the video title there seemed superfluous... > > > > It is a bit superfluous, but it's good for accessibility with > > screenreaders etc. > > Fair

Re: Idea: voluntary restricting curl (use)

2019-01-10 Thread Dan Fandrich via curl-library
On Thu, Jan 10, 2019 at 11:25:14PM +0100, Daniel Stenberg via curl-library wrote: > The all new `CURL_INHIBIT` environment variable, that is parsed by libcurl > and can be used to make libcurl avoid certain behaviors. > > Using this, you can voluntary raise the bar for what's accepted, to

Re: Disallow HTTP/0.9 ?

2018-12-17 Thread Dan Fandrich via curl-library
On Mon, Dec 17, 2018 at 04:00:27PM +0100, Daniel Stenberg via curl-library wrote: > Thoughts? Any users of HTTP/0.9 or perhaps someone who is surprised that > curl so willingly accept 0.9 this way? I can totally believe there are users out there relying on curl's HTTP 0.9 behaviour to use curl

Re: release scheduling: the December release one week early

2018-10-26 Thread Dan Fandrich via curl-library
On Fri, Oct 26, 2018 at 02:40:53PM +0200, Daniel Stenberg via curl-library wrote: > Since I'll be traveling around the time, I'm moving the December 2018 > release to happen one week earlier, on December 19. If this release contains any security fixes (as curl releases these days tend to do),

Re: Parallelizing tests

2018-10-01 Thread Dan Fandrich via curl-library
On Mon, Oct 01, 2018 at 11:58:25AM +0200, Daniel Gustafsson via curl-library wrote: > I was poking a little at parallelizing the test suite in order to try and > shave > some time off the total runtime. But before sinking time into that I wanted > to > ask if there are/have been any other

Re: Change of IP stack in curl library

2018-09-11 Thread Dan Fandrich via curl-library
On Tue, Sep 11, 2018 at 12:52:47PM +0200, Robert Jonathan Šimon via curl-library wrote: > If I am looking at it right, USE_LWIPSOCK is only used in these files > 'curl_setup_once.h', 'curl_setup.h', 'easy.c', 'config-win32.h' and > 'curl_addrinfo.c' right? Your grep works the same as mine.

Re: a URL API ?

2018-08-14 Thread Dan Fandrich via curl-library
On Tue, Aug 14, 2018 at 11:17:08AM +0200, Daniel Stenberg wrote: > Aha... well even if this is so, the effects of this will at least be > mitigated by the fact that libcurl will still canonicalize them even if it > wouldn't be perfect. > > I mean a user who wants to compare two URLs should make

Re: a URL API ?

2018-08-13 Thread Dan Fandrich via curl-library
On Mon, Aug 13, 2018 at 09:44:53AM +0200, Daniel Stenberg wrote: > On Mon, 13 Aug 2018, Dan Fandrich via curl-library wrote: > >I think there should be a new option for this kind of encoding so the > >canonical form stays canonical for every URI scheme, but programs that > &g

Re: a URL API ?

2018-08-12 Thread Dan Fandrich via curl-library
On Sun, Aug 12, 2018 at 06:45:27PM +0200, Daniel Stenberg wrote: > The current code for the API doesn't offer URL decoding at all when you ask > for the full URL - since a returned URL is still supposed to be a URL so it > can't really be "decoded" then. We can of course document that bit to mean

Re: a URL API ?

2018-08-11 Thread Dan Fandrich via curl-library
On Thu, Aug 09, 2018 at 10:48:32AM +0200, Daniel Stenberg via curl-library wrote: > Returning to this, as I've polished the API a bit over the last few days. > The wiki page has been updated to reflect the changes I've done. I'm curious whether the API can be used to canonicalize a URL, i.e.,