curl / Mailing Lists / curl-users / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: Outputting URL components

From: Timothe Litt <litt_at_acm.org>
Date: Wed, 29 Mar 2023 10:31:39 -0400


On 29-Mar-23 10:09, Daniel Stenberg via curl-users wrote:
> On Wed, 29 Mar 2023, Daniel Stenberg via curl-users wrote:
>
>>  There's also something we call the "effective URL" which is the last
>> URL
>>  curl operated on, like when following a series of redirects. Should we
>>  offer the same set of variables for that?
>
> Of course we should. I added the same set but with a "urle-" prefix,
> now in the PR as well.
>
Since it's "called 'effective url'", "eurl" would be a more memorable
prefix.  It might be better (despite the existing "url" for the complete
url) to use "iurl" (initial) or "rurl" (requested) for the requested url
and its components for consistency and to emphasize the distinction. 
You could keep "url" as a compatibility name, of course.

I vote for '.' over -'- as the delimiter.  It's consistent with
structure/component references in other languages, and the variables are
all members of a URL.


Timothe Litt
ACM Distinguished Engineer
--------------------------
This communication may not represent the ACM or my employer's views,
if any, on the matters discussed.


-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-users
Etiquette:   https://curl.se/mail/etiquette.html
Received on 2023-03-29