curl / trurl

trurl is a command line tool for URL parsing and manipulation.
https://curl.se/trurl/
Other
3.1k stars 99 forks source link

trurl: support ?= for set, to only do it if not already set #298

Closed bagder closed 3 months ago

bagder commented 3 months ago

Idea-by: @emanuele6 in #296

Due to missing support in the libcurl URL API, this is not really working for the scheme component right now, as that will always be considered set once a URL has been parsed. The scheme guessing the parser does sets it internally and there is currently no way provided by the API to figure that out.