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: Resolved "--remote-header-name"?
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
From: Paul Gilmartin via curl-users <curl-users_at_lists.haxx.se>
Date: Tue, 15 Feb 2022 18:15:13 -0700
On Feb 15, 2022, at 16:18:46, Ray Satiro wrote:
>
> To get the filename you can use --write-out %{filename_effective} [1].
> Those keywords can't be used elsewhere, for example there's no
> --dump-header %{filename_effective}.HDRS.
>
Thanks. It's a long man page and I hadn't read as far as "-w".
So I can do a trial download to capture the filename_effective to
use in --time-cond <filename_effective> and --dump-header %{filename_effective}.HDRS.
The worst case is where headers contain Etag but no filename.
It's OK as long as I'm not paying for the bandwidth.
But it's better than that. --write-out %{filename_effective} seems
to work even if the trial download fails, and I can cause that to
happen. Little bandwidth wasted. But can I count on that not
changing in a future release?
> [1]: https://curl.se/docs/manpage.html#-w
Date: Tue, 15 Feb 2022 18:15:13 -0700
On Feb 15, 2022, at 16:18:46, Ray Satiro wrote:
>
> To get the filename you can use --write-out %{filename_effective} [1].
> Those keywords can't be used elsewhere, for example there's no
> --dump-header %{filename_effective}.HDRS.
>
Thanks. It's a long man page and I hadn't read as far as "-w".
So I can do a trial download to capture the filename_effective to
use in --time-cond <filename_effective> and --dump-header %{filename_effective}.HDRS.
The worst case is where headers contain Etag but no filename.
It's OK as long as I'm not paying for the bandwidth.
But it's better than that. --write-out %{filename_effective} seems
to work even if the trial download fails, and I can cause that to
happen. Little bandwidth wasted. But can I count on that not
changing in a future release?
> [1]: https://curl.se/docs/manpage.html#-w
-- Thanks again, gil -- Unsubscribe: https://lists.haxx.se/listinfo/curl-users Etiquette: https://curl.haxx.se/mail/etiquette.htmlReceived on 2022-02-16