curl
curl copied to clipboard
Expose curl's url parsing
By calling curl_url(), then curl_url_set(), then retrieving the components with curl_url_get().
We could do it but a problem is that this API was introduced relatively recently, in libcurl 7.62.0. So we would need a fallback for older linux systems, including ubuntu-18.04 (which is the CI default): https://packages.ubuntu.com/bionic/libcurl4-openssl-dev
Ah darn it 😞
Guess you still need a fallback but FWIW 18.04 Ubuntu is now in extended support mode, Cent OS 7 is EOL, and Debian buster (which I think is also past LTS) is at 7.64 anyway.
Sadly the version of libcurl in RHEL-8 is also too old :/ But we could still do it and provide a fallback.
Sadly the version of libcurl in RHEL-8 is also too old :/ But we coudl do it and provide a fallback.
poop. Forgot to look at that obvious big one :(
Yeah it's really unfortunate, I also would like to use the new option-list API unconditinoally but this requires libcurl 7.73 irc so we have to keep providing the fallbacks.
Would it be possible to vendor in the url parsing code for older libcurl? Or is it too entangled with the rest of the code base?
As trurl is a thing I wonder if it would make more sense to have it as a similarly separate package and bring it in to curl with "suggests" for the time being?
It is pretty entangled, importing lots of the internal libcurl headers: https://github.com/curl/curl/blob/HEAD/lib/urlapi.c#L848