Re: Outputting URL components
Timothe Litt via curl-users <[email protected]>
| Newsgroups | gmane.comp.web.curl.general |
|---|---|
| Message-ID | <[email protected]> |
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
OpenPGP_signature
(application/pgp-signature, 495 B) - not displayed