On Thu Feb 1 14:08:34 2024 +0000, Gabriel Ivăncescu wrote:
The issue is that I'll have to concatenate the components then (since it includes e.g. scheme, domain, port). Wouldn't that just move the complexity to that instead? Or do you have a better idea?
I think that URL parsing should be avoided and delegated to urlmon whenever possible. There are a number of corner cases, especially with pluggable protocols around (sure, maybe this case is simple, but still). Ideally there would be some urlmon API that would give you what you need, but I didn't see one after a quick search. `IUriBuilder` should be easy to use, you may just use it to remove path and query fragments.