%{filename_effective but not transmit file?

2024-09-11 Thread Paul Gilmartin via curl-users
Is it possible to get %{filename_effective without transmitting the file? I'm trying to make the ETag name pend on that, something like: "--etag-compare %{filename_effectiv.etag" So far, the best I can do is perform a trial fetch, directing the output to a read-only directory, failing but retur

Re: %{filename_effective but not transmit file?

2024-09-11 Thread Dan Fandrich via curl-users
On Wed, Sep 11, 2024 at 05:47:50PM -0600, Paul Gilmartin via curl-users wrote: > Is it possible to get %{filename_effective without transmitting > the file? I'm trying to make the ETag name pend on that, > something like: > "--etag-compare %{filename_effectiv.etag" > > So far, the best I can do

Re: %{filename_effective but not transmit file?

2024-09-11 Thread Paul Gilmartin via curl-users
On 9/11/24 19:09, Dan Fandrich via curl-users wrote: On Wed, Sep 11, 2024 at 05:47:50PM -0600, Paul Gilmartin via curl-users wrote: Is it possible to get %{filename_effective without transmitting the file? I'm trying to make the ETag name pend on that, something like: "--etag-compare %{filenam

Re: %{filename_effective but not transmit file?

2024-09-11 Thread Daniel Stenberg via curl-users
On Wed, 11 Sep 2024, Paul Gilmartin via curl-users wrote: curl: showing headers and --remote-header-name cannot be combined Since --head implies that the body is not saved, we can actually make this work fairly easy... -- / daniel.haxx.se | Commercial curl support up to 24x7 is available

Re: %{filename_effective but not transmit file?

2024-09-11 Thread Daniel Stenberg via curl-users
On Thu, 12 Sep 2024, Daniel Stenberg via curl-users wrote: Since --head implies that the body is not saved, we can actually make this work fairly easy... Eh, no. I was not thinking right. It still needs to save the headers in that final name that it will not know until several headers have al