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: Option «urlnum» in the JSON
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
From: Daniel Stenberg via curl-users <curl-users_at_cool.haxx.se>
Date: Sun, 4 Jul 2021 18:48:00 +0200 (CEST)
On Sun, 4 Jul 2021, Ray Satiro via curl-users wrote:
> The URL index as it is shown via %{urlnum} is the URL index from the command
> line, it does not include iterations/globbing. I reported it as
> https://github.com/curl/curl/issues/7342
As I responded in the issue: it is by design. Calling it the second URL when
the user has only specified a single (globbed) URL will be utterly confusing
(in the other direction).
Something like a globbing index number could of course be provided but I think
it should be separate from urlnum.
Date: Sun, 4 Jul 2021 18:48:00 +0200 (CEST)
On Sun, 4 Jul 2021, Ray Satiro via curl-users wrote:
> The URL index as it is shown via %{urlnum} is the URL index from the command
> line, it does not include iterations/globbing. I reported it as
> https://github.com/curl/curl/issues/7342
As I responded in the issue: it is by design. Calling it the second URL when
the user has only specified a single (globbed) URL will be utterly confusing
(in the other direction).
Something like a globbing index number could of course be provided but I think
it should be separate from urlnum.
-- / daniel.haxx.se | Commercial curl support up to 24x7 is available! | Private help, bug fixes, support, ports, new features | https://www.wolfssl.com/contact/ ----------------------------------------------------------- Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users Etiquette: https://curl.haxx.se/mail/etiquette.htmlReceived on 2021-07-04