curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: a URL API ?

From: Dan Fandrich via curl-library <curl-library_at_cool.haxx.se>
Date: Tue, 14 Aug 2018 16:51:40 +0200

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 sure to canonicalize
> *both* of them before the comparison. Then such suble details such as the
> one mentioned above will actually not matter since the end results from both
> those URLs should be the same. Even if another library with more specific
> domain knowledge possibly would end up with a slightly different output.
>
> Or am I wrong?

You're right in the case of comparing URLs, but if an app is canonicalizing
them for the purpose of displaying them to the user in a nice format, then it
wouldn't be optimium, although it would still work fine.
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2018-08-14